ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Framework Namespace / FrameworkApplication Class / ApplicationTheme Property
Example

In This Topic
    ApplicationTheme Property
    In This Topic
    Gets or sets the application's theme that dictates its visual style. Three themes are supported: default (metro), dark, and high contrast.
    Syntax
    Public Shared Property ApplicationTheme As ApplicationTheme
    public static ApplicationTheme ApplicationTheme {get; set;}
    Example
    Access the current theme
    {
      //Gets the application's theme
      var theme = FrameworkApplication.ApplicationTheme;
      //ApplicationTheme enumeration
      if (FrameworkApplication.ApplicationTheme == ApplicationTheme.Dark)
      {
        //Dark theme
      }
    
      if (FrameworkApplication.ApplicationTheme == ApplicationTheme.HighContrast)
      {
        //High Contrast
      }
      if (FrameworkApplication.ApplicationTheme == ApplicationTheme.Default)
      {
        //Light/Default theme
      }
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also