Mega Code Archive

 
Categories / C# / WPF
 

Using an ImageBrush

<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" />       </Rectangle.Fill>     </Rectangle> </Page>