ViewBox StretchDirection : Viewbox « Windows Presentation Foundation « VB.Net






ViewBox StretchDirection

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>

   
    
    
    
    
    
    
  








Related examples in the same category

1.Specifying a ViewboxSpecifying a Viewbox
2.Viewbox with absolute unitsViewbox with absolute units
3.Using Viewbox and put Canvas into itUsing Viewbox and put Canvas into it
4.Specifying a Stretch for ViewBoxSpecifying a Stretch for ViewBox
5.Radial gradient fillsRadial gradient fills
6.Programmatically change the Stretch and StretchDirection of content within a Viewbox.Programmatically change the Stretch and StretchDirection of content within a Viewbox.