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">


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


  <!-- Canvas children -->


</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.