WPF OpacityMask weird behavior

前端 未结 1 1004
清酒与你
清酒与你 2021-01-27 12:43

I think I might have found a bug in WPF, or maybe I just don\'t fully understand how OpacityMasks work. As you can see on the first image, I have a diamond shaped path and a red

相关标签:
1条回答
  • 2021-01-27 13:06

    Clemens solved my issue

    Set ViewportUnits="Absolute" on the VisualBrush, and then set its Viewport property to an appropriate rectangle, e.g. Viewport="0,0,100,100"

    0 讨论(0)
提交回复
热议问题