Mega Code Archive

 
Categories / VB.Net Tutorial / WPF
 

Draws an oval with a light green interior and a red outline

<Window x: Class="WpfApplication1.Window1"     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     Title="Fun with Graphics!" Height="345" Width="452">   <Canvas>     <Ellipse Width="100" Height="50" Fill="LightGreen"       Stroke="Red" StrokeThickness="6"       Canvas.Left="10" Canvas.Top="100"/>   </Canvas> </Window>