Linear Gradient Brush Fade WPF

前端 未结 3 1404
陌清茗
陌清茗 2020-12-16 23:53

I have a brush that colors the background of a header. I like the way the brush looks but would like it to fade to transparent in the bottom third. Any ideas how to do this?

3条回答
  •  清歌不尽
    2020-12-17 00:31

    just specify the colors as ARGB (including alpha) like this: #AARRGGBB. Then give your last gradient stop an alpha value of 0 (fully transparent; in your case #0080A8CC). HTH.

提交回复
热议问题