Creating a Canvas Control with Children in Silverlight using XAML


This content was proof-read by Grammarly. You can Try Grammary for FREE

Below is a sample code snippet for creating a Canvas Control with Children in Silverlight 5 using XAML.

Canvas Control with Children in Silverlight 5 using XAML

<Canvas x:Name="ACCanvas" xmlns="http://schemas.microsoft.com/client/2007"

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

Background="Green" Width="400" Height="300" >

<Ellipse x:Name="ACEllipse" Fill="Red" Stroke="Pink" Width="200" Height="200"/>

</Canvas>
Creating a Canvas Control with Children in Silverlight using XAML
%d bloggers like this: