I am using an ItemsControl
to place n number of 开发者_运维百科Expander
s. My ItemsControl
will be placed in a Grid
with height 600 (for example). I want to make sure my ItemsControl
will always occupy the entire available Height
, to do so it can expand some of the Expander
s.
What will be the best approach to do so?
One way would be to bind the Height
and Width
properties of your control to the parent's ActualWidth
and ActualHeight
properties
精彩评论