[Message Deleted]
-
[Message Deleted]
-
[Message Deleted]
Have a look at the ViewBox control.
Cheers, Karl
» CodeProject 2008 MVP, CodeProject 2009 MVP My Blog | Mole's Home Page | XAML Power Toys Home PageJust a grain of sand on the worlds beaches.
-
[Message Deleted]
The best way to do this is to lay out your grid using * notation, so that each control is given a percentage of the grid, not a fixed size. You do this in your column and row definitions. Specify width and height using things like *, 4* and 1.5* to give percentages.
Christian Graus Driven to the arms of OSX by Vista. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums. I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
-
Have a look at the ViewBox control.
Cheers, Karl
» CodeProject 2008 MVP, CodeProject 2009 MVP My Blog | Mole's Home Page | XAML Power Toys Home PageJust a grain of sand on the worlds beaches.
Hi. Can u please tell me the difference between the grid panel usage and viewbox control with respect to stretching based on the resolution. As both seems to expand its child controls based on the resolution, except that for viewbox we can have only one child. Thanks.
-
Hi. Can u please tell me the difference between the grid panel usage and viewbox control with respect to stretching based on the resolution. As both seems to expand its child controls based on the resolution, except that for viewbox we can have only one child. Thanks.
I would strongly suggest reading the MSDN documentation on ViewBox. After you have a look at this repost questions you have. Another suggestion is to write a simple application that only consists of layout, no code, etc. Then compare the approaches, ViewBox and Grid layouts. ViewBox will automatically scale text size, where Grid layouts scale space but not font sizes.
Cheers, Karl
» CodeProject 2008 MVP, CodeProject 2009 MVP My Blog | Mole's Home Page | XAML Power Toys Home PageJust a grain of sand on the worlds beaches.