Try to search your question here, if you can't find : Ask Any Question Now ?

Use another control as an opacity mask in WPF?

HomeCategory: stackoverflowUse another control as an opacity mask in WPF?
julie asked 7 days ago

I’m trying to use the OpacityMask property combined with a VisualBrush so that when you drag an image over another control (such as another image, rectangle, or any other control), the part of the image that is over the second control has a different opacity. That is, the image has some non-zero base opacity, and any part of the image that is over another control has a different (again, non-zero) opacity.

Is this possible simply using VisualBrush and OpacityMask? Or is a more complex approach required?

Thanks!

Edit: I’m trying to make the image have some lower opacity (such as 0.5), and the part being dragged over the control have a higher opacity (such as 1.0). I originally left out this detail, which is important to the approach taken.

1 Answers
Best Answer
Mannu answered 7 days ago
Your Answer

7 + 15 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com