Mega Code Archive

 
Categories / VB.Net / WPF
 

Using Image as Ellipse fill

<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="200" Width="400">     <Canvas>         <Ellipse Canvas.Top="10" Canvas.Left="235"                  Stroke="Black" StrokeThickness="1"                  Height="135" Width="135" ToolTip="An author.">             <Ellipse.Fill>                 <ImageBrush ImageSource="c:\image.jpg" Stretch="Fill" />             </Ellipse.Fill>         </Ellipse>     </Canvas> </Window>