ImageBrush ViewportUnits=Absolute

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="Microsoft.Samples.Graphics.UsingImageBrush.TilingExample" >
<Grid Margin="20">
<TextBlock Grid.Row="2" Grid.Column="2"
FontSize="70pt" FontWeight="Bold" FontFamily="Verdana"
Margin="10">
<TextBlock.Foreground>
<ImageBrush
Viewport="0,0,25,25" ViewportUnits="Absolute"
TileMode="Tile"
ImageSource="c:\image.jpg"></ImageBrush>
</TextBlock.Foreground>
Text
</TextBlock>
</Grid>
</Page>
Related examples in the same category