Ellipse : WPF Shapes « WPF « ASP.Net






Ellipse

<Canvas Width="510" Height="250"
   xmlns="http://schemas.microsoft.com/client/2007"
   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

  <Canvas>
    <Ellipse
      Canvas.Left="5" Canvas.Top="5" Canvas.ZIndex="1"
      Height="200" Width="200"
      Stroke="Black" StrokeThickness="10" Fill="Silver" />

    <Ellipse
      Canvas.Left="50" Canvas.Top="50" Canvas.ZIndex="3"
      Height="200" Width="200"
      Stroke="Black" StrokeThickness="10" Fill="DeepSkyBlue" />

    <Ellipse
      Canvas.Left="95" Canvas.Top="95" Canvas.ZIndex="2"
      Height="200" Width="200"
      Stroke="Black" StrokeThickness="10" Fill="Lime" />

    <Canvas.RenderTransform>
      <TransformGroup>
        <TranslateTransform X="-30" Y="40" />
        <SkewTransform AngleX="15" />
        <ScaleTransform ScaleX="1.5" ScaleY="0.6" />
      </TransformGroup>
    </Canvas.RenderTransform>
  </Canvas>

</Canvas>

 








Related examples in the same category

1.TextBlock
2.LinearGradientBrush
3.Polyline
4.RectangleGeometry
5.Ellipse.OpacityMask
6.Rectangle.RenderTransform
7.Nested Canvas