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.
StackPanel.Children アイテムの幅または ActualWith を取得するには?
foreach (var item in stackPanel1.Children) { // item.Width ??? }
ありがとうございました!
FrameworkElementクラスを使用し、この基本クラスActualWidthにWidth属しています-
FrameworkElement
ActualWidth
Width
foreach (FrameworkElement item in stackPanel1.Children) { double width = item.ActualWidth; }