Search This Blog

Friday 23 July 2021

Disable Dark Mode In Xamarin Form

iOS

Add the following key-value in your Info.list file.

<key>UIUserInterfaceStyle</key>
<string>Light</string>

Android:

Add the following line in OnCreate() Method of MainActivity.cs

AppCompatDelegate.DefaultNightMode = AppCompatDelegate.ModeNightNo; //Starting of method



No comments:

Post a Comment

Popular Posts