开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜