Canvas control in silverlight


<
Grid x:Name="LayoutRoot">
<Canvas Width="500" Height="500" Background="Silver" >
<Rectangle Canvas.Left="35" Canvas.Top="40" Fill="green" Width="150" Height="150" Stroke="Black" StrokeThickness="5" StrokeLineJoin="Round" />
<Rectangle Canvas.Left="315" Canvas.Top="40" Fill="green" Width="150" Height="150" Stroke="Black" StrokeThickness="5" StrokeLineJoin="Round" />
<Line X1="260" Y1="190" X2="260" Y2="300" Stroke="Black" StrokeThickness="25" ></Line>
<Ellipse Canvas.Left="190" Canvas.Top="370" Fill="Red" Width="150" Height="100" Stroke="Black" StrokeThickness="5" StrokeLineJoin="Round" ></Ellipse>
</Canvas>

</Grid>
Next Recommended Reading Clock in Silverlight With C#