I am new to Silverlight/XAML so apologies if this is an obvious question.
How can you detect when the OOB window is resized and resize your own controls to fit the new window size?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In Silverlight (regardless of OOB or not) you wouldn’t normally need to detect window resizing to perform your own resizing. Using the correct panel types sorts that out for you.
For example:-
Here the four rectangles divide up the window into quarters. It may be worth your while spending a little time review the documentation for the various panel types such as
Grid,CanvasandStackPanelto get a feel for how each works.