Change Windows Store App From Dark to Light

The Windows Framework supports two App themes, Dark and Light. The Dark theme has a black background and the Light theme has a white background. The default theme of the app is the Dark theme.

The RequestedTheme property of the application sets the theme of the application. To change an app theme from Dark to Light, open App.xaml and change the RequestedTheme value to Light.

The following code snippet sets the app theme to Light at design-time, in XAML. 

 

  1. <Application    
  2. x:Class="HelloWindows.App"    
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   
  5. xmlns:local="using:HelloWindows"    
  6. RequestedTheme="Light">    
  7. </Application>  
You can also set the theme in your code at run-time by setting the RequestedTheme property to ApplicationTheme.Light.
 
The following code snippet sets the app theme to Light. 
  1. this.RequestedTheme = ApplicationTheme.Light;  
 

 


Similar Articles
Mindcracker
Founded in 2003, Mindcracker is the authority in custom software development and innovation. We put best practices into action. We deliver solutions based on consumer and industry analysis.