Home Overwriting the "template" of an Image?

# Overwriting the "template" of an Image?

user40957
1#
user40957 Published in September 19, 2018, 9:54 am

step by step I try to implement themes into my application. This includes a nightmode, where the background is dark and the foreground white. Formerly I had plain black icons which cannot be seen anymore when the background is dark as well so I need to make them change colors on demand.

I achieved doing this by using a rectangle with an OpacityMask

<Rectangle
VerticalAlignment="Center"
HorizontalAlignment="Left"
Width="20"
Height="20"
Fill="{DynamicResource BlackBrush}">