Using Silverlight 2 Layout Controls: Listing 2

<Canvas xmlns="http://schemas.microsoft.com/client/2007">
  <Rectangle Canvas.Top="25" Canvas.Left="25" 
   Width="200" Height="150" Fill="Yellow" />

  <Ellipse Height="100" Width="100" Canvas.Left="10" Canvas.Top="20" 
   Stroke="Black" StrokeThickness="3" Fill="Blue"/>

  <Line X1="280" Y1="10" X2="10" Y2="280"
   Stroke="Black" StrokeThickness="5"/>
	
  <TextBlock Name="tbCanvas"
   Canvas.Left="36" Canvas.Top="80"
   Foreground="Maroon" FontFamily="Verdana" FontSize="24"
   FontWeight="Bold" Text="Hello From Silverlight!">
  </TextBlock>
</Canvas>
comments powered by Disqus
Most   Popular
Upcoming Events

.NET Insight

Sign up for our newsletter.

Terms and Privacy Policy consent

I agree to this site's Privacy Policy.