<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="Microsoft.Samples.Graphics.RectangleExample"
WindowTitle="Example">
<Canvas>
<TextBlock Margin="3">Fixed Tiles</TextBlock>
<Rectangle Grid.Column="1" Stroke="Black">
<Rectangle.Fill>
<ImageBrush ImageSource="c:\image.jpg" TileMode="Tile"
ViewportUnits="Absolute" Viewport="0 0 37 37"></ImageBrush>
</Rectangle.Fill>
</Rectangle>
</Canvas>
</Page>
|