Creating transparent background in WPF

后端 未结 3 490
独厮守ぢ
独厮守ぢ 2021-01-06 08:08

I have a button with a backgroun image of color white. My button is sitting on the toolbar which has a bacground color of Blue. When the button is sitting on the toolbar, th

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-06 09:07

    You have to make sure your image has transparency, WPF won't try to figure out what parts in your image should be see-through and what parts should be opaque. Check that your image editor can export images with transparency, most likely to PNG.

提交回复
热议问题