Any easy way to apply OpacityMask
to a UI object in UWP XAML?
I used to do that in WPF but appears to be missing in UWP.
Any easy way to apply OpacityMask
to a UI object in UWP XAML?
I used to do that in WPF but appears to be missing in UWP.
You can partially replicate this functionality, but not in an especially easy way. Windows Composition API
offers a similar functionality where you can define a CompositionMaskBrush
with which you will "paint over" the UI object to achieve a opacity mask effect.
There is an example as the solution of a GitHub issue that demonstrates such process. The same user also asked on StackOverflow.
You can also check out the CompositionProToolkit that might simplify implementing this.