Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting a background image on a WPF image control?

I'm trying to have a background image on an image control in WPF, such as if I load a transparent PNG, I would still be able to see the background. Is it possible, or did Microsoft totally drop this feature with WPF and I have to rely on StackPanels/Grids/Whatever to achieve this ?

like image 815
pikzen Avatar asked Jan 24 '12 21:01

pikzen


1 Answers

Image has no property to allow for that, just put the Image in a Border and set the Border.Background to an ImageBrush.

like image 79
H.B. Avatar answered Oct 15 '22 21:10

H.B.