StrokeDashArray: 4,2 /StrokeDashOffset: 2


   
   

<Window x:Class="Workspace.DockExample"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Workspace" Width="640" Height="480">
    <Rectangle Grid.Row="3" Grid.Column="2" Width="150" Height="150"
               StrokeDashArray="4 2" StrokeDashOffset="2"
               Stroke="Black" StrokeThickness="3" Fill="Blue">
    </Rectangle>

</Window>

   
    
    
     


StrokeDashArray: 4,1,4,3 /StrokeDashOffset: 1


   
   
<Window x:Class="Workspace.DockExample"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Workspace" Width="640" Height="480">
    <Ellipse Grid.Row="6" Grid.Column="0" Width="150" Height="150"
               StrokeDashArray="4 1 4 3" StrokeDashOffset="1"
               Stroke="Black" StrokeThickness="3" Fill="Blue">
    </Ellipse>

</Window>

   
    
    
     


StrokeDashArray: 1,4,1,2 / StrokeDashOffset: 1


   
   
<Window x:Class="Workspace.DockExample"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Workspace" Width="640" Height="480">
    <Ellipse Grid.Row="6" Grid.Column="1" Width="150" Height="150"
               StrokeDashArray="1 4 1 2" StrokeDashOffset="1"
               Stroke="Black" StrokeThickness="3" Fill="Blue">
    </Ellipse>

</Window>

   
    
    
     


StrokeDashArray: 1 / StrokeDashOffset: 1


   
   

<Window x:Class="Workspace.DockExample"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Workspace" Width="640" Height="480">
    <Ellipse Grid.Row="6" Grid.Column="2" Width="150" Height="150"
             StrokeDashArray="1" StrokeDashOffset="1"
             Stroke="Black" StrokeThickness="3" Fill="Blue">
    </Ellipse>

</Window>

   
    
    
     


Stretch = Uniform

   
    

<Window x:Class="Chapter05.ImageBrushExample"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  Title="Chapter05" Height="300" Width="300">
      <StackPanel Margin="5" Grid.Column="0" Grid.Row="1">
        <TextBlock Margin="5" Text="Stretch = Uniform" />
        <Button Width="135" Height="100">
          <Button.Background>
            <ImageBrush ImageSource="c:image.jpg" Stretch="Uniform" />
          </Button.Background>
        </Button>
      </StackPanel>
</Window>

   
    
    
    
     


Stretch = UniformToFill

   
    

<Window x:Class="Chapter05.ImageBrushExample"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  Title="Chapter05" Height="300" Width="300">
      <StackPanel Margin="5" Grid.Column="1" Grid.Row="1">
        <TextBlock Margin="5" Text="Stretch = UniformToFill" />
        <Button Width="135" Height="100">
          <Button.Background>
            <ImageBrush ImageSource="c:image.jpg" Stretch="UniformToFill" />
          </Button.Background>
        </Button>
      </StackPanel>
</Window>

   
    
    
    
     


Stretch = Fill


   
    

<Window x:Class="Chapter05.ImageBrushExample"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  Title="Chapter05" Height="300" Width="300">
      <StackPanel Margin="5" Grid.Column="1" Grid.Row="0">
        <TextBlock Margin="5" Text="Stretch = Fill" />
        <Button Width="135" Height="100">
          <Button.Background>
            <ImageBrush ImageSource="c:image.jpg" Stretch="Fill" />
          </Button.Background>
        </Button>
      </StackPanel>
</Window>