WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class XPThemes

    Show / Hide Table of Contents

    Class XPThemes

    Provides some information regarding themes support and state in the OS.

    Inheritance
    System.Object
    XPThemes
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Forms
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public class XPThemes

    Constructors

    XPThemes()

    Declaration
    public XPThemes()

    Properties

    CurrentThemeColorScheme

    Returns the current theme color scheme name.

    Declaration
    public static string CurrentThemeColorScheme { get; }
    Property Value
    Type Description
    System.String

    IsAppThemed

    Indicates whether the current application is themed.

    Declaration
    public static bool IsAppThemed { get; }
    Property Value
    Type Description
    System.Boolean

    IsDefaultBlueThemeOn

    Indicates whether the default blue theme is on.

    Declaration
    public static bool IsDefaultBlueThemeOn { get; }
    Property Value
    Type Description
    System.Boolean

    IsOliveGreenThemeOn

    Indicates whether the Olive Green theme is on.

    Declaration
    public static bool IsOliveGreenThemeOn { get; }
    Property Value
    Type Description
    System.Boolean

    IsSilverThemeOn

    Indicates whether the Silver theme is on.

    Declaration
    public static bool IsSilverThemeOn { get; }
    Property Value
    Type Description
    System.Boolean

    IsThemeActive

    Indicates whether themes are enabled in the current OS.

    Declaration
    public static bool IsThemeActive { get; }
    Property Value
    Type Description
    System.Boolean

    IsThemedOS

    Indicates whether this OS has themes support built-in.

    Declaration
    public static bool IsThemedOS { get; }
    Property Value
    Type Description
    System.Boolean

    True if themes are supported; False otherwise.

    Remarks

    This property returns True for Windows XP and later versions.

    ThemeFileName

    Returns the theme file name with the path.

    Declaration
    public static string ThemeFileName { get; }
    Property Value
    Type Description
    System.String

    Methods

    RegisterControlDrawing(ThemedControlDrawing)

    Declaration
    public static void RegisterControlDrawing(ThemedControlDrawing tcd)
    Parameters
    Type Name Description
    ThemedControlDrawing tcd

    UnregisterControlDrawing(ThemedControlDrawing)

    Declaration
    public static void UnregisterControlDrawing(ThemedControlDrawing tcd)
    Parameters
    Type Name Description
    ThemedControlDrawing tcd

    UnWireThemeChangeListenerForm()

    Used to unwire the ThemeChangeListenerForm class.

    Declaration
    public void UnWireThemeChangeListenerForm()

    Events

    ThemeChanged

    Declaration
    public static event EventHandler ThemeChanged
    Event Type
    Type Description
    System.EventHandler
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved