menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Interface IThemeProvider - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Interface IThemeProvider

    Provides the functionalities for the control to provide theme support.

    Inherited Members
    IVisualStyle.VisualTheme
    Namespace: Syncfusion.WinForms.Theme
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public interface IThemeProvider : IVisualStyle

    Properties

    BaseThemeName

    Gets or sets the Base ThemeName of the theme

    Declaration
    string BaseThemeName { get; set; }
    Property Value
    Type
    System.String

    CanApplyTheme

    Gets or sets a value indicating whether the SkinManager theme should be applied to the control. Default value is true.

    Declaration
    bool CanApplyTheme { get; set; }
    Property Value
    Type
    System.Boolean
    Remarks

    If true, will be applied to control. Otherwise ThemeName will be applied to control.

    CanOverrideStyle

    Gets or sets a value indicating whether control elements styles can be overridden by theme style settings.

    Declaration
    bool CanOverrideStyle { get; set; }
    Property Value
    Type
    System.Boolean
    Remarks

    By default, the control's element styles will not be overridden by theme style settings if the style is set in sample level. If this property is enabled, element style will be overridden by theme style settings event if it is set in sample level. This property should be enabled or disabled before calling the ThemeName property of the control.

    ControlName

    Gets the name of the control.

    Declaration
    string ControlName { get; }
    Property Value
    Type
    System.String

    IsVisualStyleEnabled

    Gets a value indicating whether the visual style based theme is applied to the control and also indicates whether the theme files are referred from external assemblies or not.

    Declaration
    bool IsVisualStyleEnabled { get; }
    Property Value
    Type Description
    System.Boolean

    Return true, if the visual style based theme is applied to the control. Otherwise returns false.

    ThemeName

    Gets or sets the name of the theme.

    Declaration
    string ThemeName { get; set; }
    Property Value
    Type
    System.String

    Methods

    GetActiveThemeName()

    Gets the name of the active theme that is currently applied to the control.

    Declaration
    string GetActiveThemeName()
    Returns
    Type
    System.String

    Events

    ThemeNameChanged

    Occurs when theme is changed.

    Declaration
    event ThemeChangedEventHandler ThemeNameChanged
    Event Type
    Type
    ThemeChangedEventHandler
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved