resize the control in wpf [Resolved]

Posted by Sudhakar_A under WPF on 10/24/2013 | Points: 10 | Views : 1510 | Status : [Member] | Replies : 3
how to resize the controls in wpf?....
I mean when i press maximize button in ma window.
then ma label and textbox should fit the entire screen.

Pls help to sort out?




Responses

Posted by: Bandi on: 10/24/2013 [Member] [MVP] Platinum | Points: 50

Up
0
Down

Resolved
Refer this link for auto-resizing the controls in the window:
http://www.thebestcsharpprogrammerintheworld.com/blogs/resize-wpf-contents-controls-when-window-is-resized.aspx
http://www.thebestcsharpprogrammerintheworld.com/blogs/Resize-a-control-within-a-WPF-window-grid-at-runtime.aspx
http://stackoverflow.com/questions/8121906/resize-wpf-window-and-contents-depening-on-screen-resolution


Let me know which one is worked for you?

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Sudhakar_A, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bandi on: 10/24/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Use <Viewbox> for that..
Refer the same below:
http://stackoverflow.com/questions/1114385/sizing-the-content-to-fit-into-screen-resolution

--Alternate is
http://stackoverflow.com/questions/378555/wpf-maximizing-app-window-does-not-expand-controls-vertically-horizontally-i

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Sudhakar_A, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sudhakar_A on: 10/28/2013 [Member] Starter | Points: 25

Up
0
Down
Thnk's @chandu

Sudhakar_A, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response