开发者

How can I set the height of a WPF-Control to the maximum which is available?

开发者 https://www.devze.com 2022-12-16 06:46 出处:网络
For example: I have a Stackpanel with height of 200px. In this panel a grid wit开发者_运维知识库h a height of 50px. How can I add a control (for example a textblock), which use the complete rest of he

For example: I have a Stackpanel with height of 200px. In this panel a grid wit开发者_运维知识库h a height of 50px. How can I add a control (for example a textblock), which use the complete rest of height (150px) and not only the height of the textfont?


Use a DockPanel instead. The last item added to a DockPanel takes up remaining space.

0

精彩评论

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