The ImageBrush's Viewport and TileMode properties are set so that the image is tiled

image_pdfimage_print


   
   
<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 Width="50" Height="50" Grid.Row="2" Grid.Column="1">
        <Rectangle.Fill>
          <ImageBrush Viewport="0,0,10,10" ViewportUnits="Absolute" TileMode="Tile"   ImageSource="c:image.jpg" />
        </Rectangle.Fill>
      </Rectangle>

</Window>