In Xamarin, how to detect when user is changing theme (dark mode)
I would like to react to a theme changed by the user “outside” the application. Application.Current.RequestedThemeChanged += (s, a) => { TLog.Info(“[X][AppEvent]”, $”Current App theme will be changed to ‘{a.RequestedTheme}'”); //Do some UI adjustments }; According to this documentation, in my MainActivity.cs file, I have added ConfigChanges.UiMode : [Activity(Label = “DringCat”, Icon = “@mipmap/icon”, Theme … Read more