开发者

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


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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜