Linear Gradient Brush Fade WPF

前端 未结 3 1403
陌清茗
陌清茗 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:20

    I'm not sure you can do it by working only at the brush level, however you could apply an OpacityMask to your control:

    
      
      
      
    
    
    ...
    
    

提交回复
热议问题