Let’s say we show some WPF Window and comes moment when we have to show some extra panel at the bottom.
What I want to do is to increase WPF Window size and center it again.
Any clue or samples?
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.
You can programmatically change the size and location of the window, just set the appropriate Width and Height values for size and Top and Left for location. But it’s even easier.
Following this page you get
to automatically adapt the window size to the content, and with the help of this link you can center the window again after the size was changed.