Articles → WPF → Viewbox Control In WPF
Viewbox Control In WPF
Purpose
Example
<Window x:Class="ViewboxDemo.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<Viewbox Stretch="Uniform">
<Button Content="Test" />
</Viewbox>
</Grid>
</Window>
Output
Click to Enlarge
Click to Enlarge