开发者

How to adjust the height of the window dynamically in WPF?

开发者 https://www.devze.com 2022-12-24 08:07 出处:网络
I have a model window that contains expander control. This expander control when expanded shows the user control which allow user to enter input through textboxes.

I have a model window that contains expander control.

This expander control when expanded shows the user control which allow user to enter input through textboxes.

When expande开发者_JS百科r control is collapsed it hides the user control.

I want when expander is collapsed or expanded the window will resize its height accordingly at run time.

Pleas help!!


You can set property SizeToContent="WidthAndHeight", see also on SizeToContent on MSDN

0

精彩评论

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