Skip to content

Instantly share code, notes, and snippets.

@sthewissen
Created December 16, 2020 12:10
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save sthewissen/1a108007d998123bd047719cc2fedd72 to your computer and use it in GitHub Desktop.
Getting/setting app theme
// Get the current theme
OSAppTheme currentTheme = Application.Current.RequestedTheme;
// Set the current theme.
Application.Current.UserAppTheme = OSAppTheme.Dark;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment