Mega Code Archive

 
Categories / VB.Net / WPF
 

Draws several Ellipse elements within a Canvas

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     x:Class="Microsoft.Samples.Graphics.RectangleExample"     WindowTitle="Rectangle Example">   <Canvas>         <Ellipse           Width="100"           Height="50"           Fill="#CCCCFF"           Canvas.Left="10"           Canvas.Top="25" />         <Ellipse           Width="100"           Height="50"           Fill="#CCCCFF"           Stroke="Black"           StrokeThickness="4"           Canvas.Left="10"           Canvas.Top="100"/>         <Ellipse           Width="50"           Height="50"           Fill="#CCCCFF"           Canvas.Left="135"           Canvas.Top="25"/>         <Ellipse         Width="50"         Height="50"           Stroke="Black"           StrokeThickness="4"           Canvas.Left="135"         Canvas.Top="100" />   </Canvas> </Page>