Good morning.
My question is if there is any way to get in C # if the system is in dark / light mode / theme and make the requested theme of the app be the same.
The configuration of the theme in Windows is this:
For example, if I have a background grid, when the computer is set to dark mode, that grid will turn black. I know that by putting the following the emphasis color is achieved:
Grid.Background = new SolidColorBrush((Color)Resources["SystemAccentColor"]);
But what I need is the light or dark theme defined by the user in the Windows configuration.
Thanks for everything!