Mega Code Archive

 
Categories / VB.Net Tutorial / WPF
 

Specifying a Stretch and a TileMode

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"       HorizontalAlignment="Stretch" VerticalAlignment="Stretch">         <Rectangle>           <Rectangle.Fill>             <ImageBrush ImageSource="c:\image.jpg"                         Viewport="0,0,100,100" ViewportUnits="Absolute"                         TileMode="Tile" />           </Rectangle.Fill>         </Rectangle> </Page>