开发者

WPF expander size issue

开发者 https://www.devze.com 2023-01-09 10:44 出处:网络
I am using an ItemsControl to place n number of 开发者_运维百科Expanders. My ItemsControl will be placed in a Grid with height 600 (for example). I want to make sure my ItemsControl will always occupy

I am using an ItemsControl to place n number of 开发者_运维百科Expanders. 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 Expanders.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消