Mega Code Archive

 
Categories / VB.Net / WPF
 

A large rectangle built using an image brush

<Window    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   Title="SolidColorBrush Animation Example"   Background="White">      <StackPanel>     <Rectangle Height ="100" Width ="300">       <Rectangle.Fill>         <ImageBrush>           <ImageBrush.ImageSource>             <BitmapImage  UriSource ="c:\image.JPG"/>              </ImageBrush.ImageSource>             </ImageBrush>            </Rectangle.Fill>         </Rectangle>   </StackPanel> </Window>