MaterialDesignInXAML / MaterialDesignInXamlToolkit

Google's Material Design in XAML & WPF, for C# & VB.Net.
http://materialdesigninxaml.net
MIT License
15.08k stars 3.42k forks source link

The Dark Theme cannot be displayed properly #3567

Closed xunmeng2002 closed 4 months ago

xunmeng2002 commented 4 months ago

Bug explanation

image

image

image

WpfApp7.zip

Version

5.0.0

xunmeng2002 commented 4 months ago

TabControl: Headers for inactive Tab pages cannot be displayed ListBox control: The contents of the child items of the control cannot be displayed

Keboo commented 4 months ago

Thank you for the nice reproduction project. In this case, the issue is that the Window is not properly themed which is why when switching to Dark theme, the background and foreground of the text both become while. If you add Style="{StaticResource MaterialDesignWindow}" to your MainWindow you will see the problem is fixed.

xunmeng2002 commented 4 months ago

Thank you for the nice reproduction project. In this case, the issue is that the Window is not properly themed which is why when switching to Dark theme, the background and foreground of the text both become while. If you add Style="{StaticResource MaterialDesignWindow}" to your MainWindow you will see the problem is fixed.

Thank you. This problem is solved.