Enabling dark theme in our MAUI PDF viewer
With Nutrient, it’s possible to programmatically change the interface to dark mode by setting the Application.Current!.UserAppTheme(opens in a new tab) property:
Application.Current!.UserAppTheme = AppTheme.Dark;Application.Current!.UserAppTheme = AppTheme.Light;Note that you can only set the theme to AppTheme.Dark or AppTheme.Light before loading the MAUI SDK. Any theme changes after the SDK is loaded will not be applied.