ArcGIS Pro 3.1 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 static ApplicationTheme ApplicationTheme {get; set;}
    Public Shared Property ApplicationTheme As ApplicationTheme
    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, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also