Replies: 1 comment
-
Ok sorry, I did bad research... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I have implemented a navigation example with the
HamburgerMenu
like in https://mahapps.com/docs/controls/HamburgerMenu.In
App.xaml
I set the Theme like this:In my
MainWindow.xaml
I have:The content of the HamburgerMenu is set in code behind to the Frame of the NavigationService like in the example.
And my
Page1.xaml
orPage2.xaml
are just a simple Page with a Textblock in it:The problem I have is that the Foreground of the TextBlock in the Page is Black, when my theme is dark and therefore my background is also black. How can I accomplish that the TextBlock in the Page I navigate to uses the correct Foreground according to the current Theme?
When I add a TextBlock in the MainWindow its Foreground is correct (White).
The Style is just not applied to the controls in the Page I navigate to...
Beta Was this translation helpful? Give feedback.
All reactions