How to relative scale size of User Control?

Viewed 29280

How to relative scale size of User Control like image (in image editor).

Example (100%):

alt text
(source: stegnar.com)

Scaled down UC (70%):

alt text
(source: stegnar.com)

Well I achieve this in picture editor, but I would like in WPF. :) I need this to adjust my application to different screen resolution, while nothing hiding (no scrollbars).

3 Answers

you can place the whole container into a ViewBox

<Viewbox StretchDirection="Both" Stretch="Uniform">
  <Grid>...</Grid>
</Viewbox>

you don't have to place each single textblock in it!

Related