Mega Code Archive

 
Categories / VB.Net / WPF
 

ViewBox StretchDirection

<Window x:Class="Window1"     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     Title="UseViewbox" Height="208" Width="257">     <Grid>         <Viewbox Name="Viewbox1" Stretch="Uniform" StretchDirection="Both">             <Button Height="23" Name="Button1" Width="75">Button</Button>         </Viewbox>     </Grid> </Window>