Creating transparent background in WPF

后端 未结 3 492
独厮守ぢ
独厮守ぢ 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:01

    Are you sure you want to use an image? If the image is just a solid color, you're probably better off just setting the button's background to white and adjusting its opacity. Like:

    Where Opacity can be any value between 0 and 1.

    EDIT: I'm not sure what you mean by "shades." Are you aware that you can set the background of a Button to a gradient? You'll want to change the colors I'm sure, but it will look something like this:

    
    

提交回复
热议问题