Closed TripleNico closed 3 years ago
Doh! I overlooked that GlowBrush
has a StaticResource
assigned. That's why it didn't change.... For more explanation https://stackoverflow.com/a/200875/4847008
@TripleNico thank you for sharing your own solution 👍
I bumped into an issue and maybe i'm doing it wrong but this is what i experience:
Our application uses the
Dark.Blue
Theme which is declared inApplication.xaml
for example:In the MainWindow.xaml we have set the
GlowBrush
like this:More complete:
Now if upon startup a certain condition is met then we change the theme from code, using this:
As described here: Theme Usage
Now this does change the UI to
Dark.Green
except theGlowBrush
stays Blue. This is either because the update of the property isn't notified or theThemeManager
doesn't change theMahApps.Brushes.Accent
? If i change theApplication.xaml
to useDark.Green
then theMahApps.Brushes.Accent
is green.