Silverlight XAML Primer 10, Listing 1

Simulating a progress bar using XAML.

<Canvas xmlns="http://schemas.microsoft.com/client/2007">

  <Rectangle Name="rectProgress" Width="0" 
  Height="23" Fill="Green" 
  Canvas.Left="20" Canvas.Top="21" />

  <Rectangle Name="rectProgressBorder" 
  Width="300" Height="25" StrokeThickness="2" 
  Stroke="Black" Canvas.Left="20" Canvas.Top="20" />

  <TextBlock Name="tbProgress" FontSize="20" Foreground="Black"
  Canvas.Left="325" Canvas.Top="18">0%
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.