tags:

views:

32

answers:

1

I have user control that i wrote. this user control is appear on some Window ( host ) and the window size is dynamic. I want to make the user control size to be also dynamic - and if the window host size is change ( grow / shrink ) then the user control also will change.

I try a lot of thinks - but the user control size is not changing ( also try to mark the user control as 'fill' and its not working. )

How to do it ?

Thanks

+1  A: 

You have to make the controls on the user control grow and shrink too, and to do this use the DockPanel and GridPanel (WPF) or the Dock or Anchor properties (WinForms). Then when the control itself is resized, the controls will resize automatically also

w69rdy