Skip to content

No background and invisible controls when theme is set to dark #492

Answered by pomianowski
dawemeister asked this question in Q&A
Discussion options

You must be logged in to vote

You have not changed the MainWindow background but you have selected the Dark theme in App.xaml.
Most likely, you have a white background and a white icon, thus nothing is visible.

For example, you can do it this way:

<Window
    ...
    xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
    Background="{ui:ThemeResource ApplicationBackgroundBrush}">
</Window>

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@GronbergInfo
Comment options

@Jay-o-Way
Comment options

Answer selected by dawemeister
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants