Mega Code Archive

 
Categories / VB.Net / WPF
 

Use image to fill an Ellipse

<Window x:Class="WpfApplication1.Window1"     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     Title="WPF" Height="300" Width="300">     <UniformGrid Columns="3" Rows="4">         <Ellipse Margin="5" Stroke="Black" StrokeThickness="1" >             <Ellipse.Fill>                 <ImageBrush ImageSource="c:\image.jpg" />             </Ellipse.Fill>         </Ellipse>     </UniformGrid> </Window>