How to use the OS default theme as my app's theme?

I want to use the user's Windows 10 Mobile theme (dark or light) automatically in my app so my app is in line with the chose theme on the OS. How to do this?

Upvotes: 0

Views: 156

Answers (1)

Decade Moon
Decade Moon

Reputation: 34306

Just remove the RequestedTheme="Light" attribute from your App.xaml file. If you do not set a RequestedTheme, then it will use the system theme by default.

Upvotes: 2

Related Questions