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

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
MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.
Employers - Post Free Jobs
Tags
SPONSORED BY
  • MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.
Employers - Post Free Jobs