Click here to Skip to main content
15,667,436 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to make an app with XAML and C#, but i dont know how to change the theme, i googled alot and found this thing

public App()
App.Current.RequestedTheme = ApplicationTheme.Light; //theme changed to light,but still blacks
this.Suspending += OnSuspending;

Please help me with this requested theme! :(

1 solution

Usually it is set in App.xaml file as the Application attribute. If you want to set it from code, try to call it before this.InitializeComponent().
Share this answer
saad_lah 17-Jun-13 14:24pm    
I tried alot by changing the position but nothing happens, i delete that page and added a new one which solved the problem.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900