Yiannis Alexopoulos
Yiannis Alexopoulos

Reputation: 91

WinRT & Light Theme

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

Answers (3)

louis.luo
louis.luo

Reputation: 2971

This link can be helpful if you haven't check this yet.

Upvotes: 2

Nilzor
Nilzor

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

Richard Garside
Richard Garside

Reputation: 89160

You can set the theme in app.xaml like this:

<Application
    ..
    RequestedTheme="Light">

Upvotes: 16

Related Questions