July 2015
Intermediate to advanced
1300 pages
87h 27m
English
The ViewBox panel allows adapting nested controls to its size, including the content of controls. For example, consider the following code:
<Viewbox> <Button Width="150" Height="75"> ViewBoxed button </Button></Viewbox>
You immediately notice how the button’s text is expanded to best fit the button size. This also happens if you decrease or increase the window size, as demonstrated in Figure 28.19.
FIGURE 28.19 The ViewBox panel in action.
In a few words, the ViewBox allows resizing controls and their content.
Read now
Unlock full access