<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>
<Rectangle Width="200" Height= "200" Stroke="Black">
<Rectangle.Fill>
<ImageBrush ImageSource="c:\image.jpg" TileMode="FlipY"
ViewportUnits="Absolute" Viewport="0 0 37 37"></ImageBrush>
</Rectangle.Fill>
</Rectangle>
</Canvas>
</Page>
|