Silverlight Primer 3: Listing 1

Adding an image as the background for a canvas using the ImageBrush element.

<Canvas Canvas.Left="10" Canvas.Top="10" Height="600" Width="800">

  <ImageBrush ImageSource="Images/NavyBg.jpg" Stretch="Uniform" />

  <!-- Canvas children -->


comments powered by Disqus
Upcoming Events

.NET Insight

Sign up for our newsletter.

Terms and Privacy Policy consent

I agree to this site's Privacy Policy.