Resource

How to set an Image as Background of a Grid in WPF

Soft Dev Resources Jun 16, 2009
How to set an Image as Background of a Grid in WPF
  • 0
  • 0
  • 38451

To set an image as background of a Grid, we can set an image as the Background of the Grid. The following code snippet sets the background of a Grid to an image. The code also sets the opacity of the image.

<Grid.Background>

   <ImageBrush ImageSource="Flower.jpg" Opacity="0.3"/>
</
Grid.Background>

 

COMMENT USING

PREMIUM SPONSORS

Hire Mobile & Web Developer on demand. 100% satisfaction. Try for 1 week or Money Back. Local and remote developers available all over USA.

TOP RESOURCES

MOST LIKED RESOURCES