Does anybody have a suggestion on how to create a gui that can change size with the size of the window. Similar to how Media Center works. If media center is maximized the fonts etc increase in size. So the gui is always ‘uniform’?
Share
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’ll need a Viewbox as your outermost container if you want everything including fonts and images to resize. By default the Stretch property of the Viewbox is set to Uniform which means everything maintains a relative aspect ratio and fills the direction that would clip it first.
Here’s an example from MSDN displaying the effects of the various Stretch values.
(source: microsoft.com)