Reputation: 91
How can I set my XAML Metro application to use the light theme (as shown in VS 11 Beta Platform Dock) It defaults to the dark theme which I don't like
Thanks
Upvotes: 9
Views: 6340
Reputation: 18573
You can also do this programatically by setting App.Current.RequestedTheme
in the constructor of app.xaml.cs
. Example::
public App()
{
this.InitializeComponent();
App.Current.RequestedTheme = ApplicationTheme.Light;
}
Setting it at a later point in time throws an exception though. For more details: Blog post about this
Upvotes: 1
Reputation: 89160
You can set the theme in app.xaml like this:
<Application
..
RequestedTheme="Light">
Upvotes: 16