Yanshof
Yanshof

Reputation: 9926

How to show userControl on all screen?

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

Upvotes: 0

Views: 341

Answers (1)

Iain Ward
Iain Ward

Reputation: 9946

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

Upvotes: 2

Related Questions