Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
WPFアプリのグリッド内にCanvasがあります。KinectデータからCanvasにスケルトンを描きたい。しかし、Canvasの幅はわずかで、おそらく1pxです。グリッドは、設定された幅と高さを維持せずに、縮小させます。グリッドに宣言されたサイズを維持させる方法は?
グリッドとキャンバスの両方にHorizontalAlignment="Stretch"、VerticalAlignment="Stretch"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"