<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">
<Canvas Margin="5">
<!--Fill with diagonal LinearGradientBrush-->
<Ellipse Canvas.Top="30" Canvas.Left="110" Height="150" Width="150">
<Ellipse.Fill>
<LinearGradientBrush StartPoint="1,1" EndPoint="0,0">
<GradientStop Color="#DDFFFFFF" Offset=".2" />
<GradientStop Color="#FF000000" Offset=".8" />
</LinearGradientBrush>
</Ellipse.Fill>
</Ellipse>
</Canvas>
</Window>
|