views:

192

answers:

1

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 expander 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!!

+1  A: 

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

In The Pink