Search This Blog

Sunday 29 May 2022

Setting Application Theme Manually In .Net MAUI

 Write Following code on App.xaml.cs

namespace CustomRenderer;
 
public partial class App : Application
{
	public App()
	{
		InitializeComponent();
                Application.Current.UserAppTheme = AppTheme.Light;
                MainPage = new AppShell();
	}
}
 

No comments:

Post a Comment

Popular Posts