menu

WinForms

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

    Show / Hide Table of Contents

    Class ThemedControl

    A System.Windows.Forms.Control implementing the IThemedControl interface.

    Inheritance
    System.Object
    BaseControl
    ThemedControl
    ScrollButtons
    ThemedButtonBase
    CheckRadioBase
    ProgressBarAdv
    Implements
    IThemeProvider
    IVisualStyle
    System.IDisposable
    Inherited Members
    BaseControl.CanApplyTheme
    BaseControl.CanOverrideStyle
    BaseControl.ControlName
    BaseControl.GetActiveThemeName()
    BaseControl.GetControlName(String)
    BaseControl.IsVisualStyleEnabled
    BaseControl.IThemeProvider.BaseThemeName
    BaseControl.IVisualStyle.VisualTheme
    BaseControl.OnCanApplyThemeChanged(Boolean)
    BaseControl.OnCanOverrideStyleChanged(Boolean)
    BaseControl.OnThemeNameChanged(String)
    BaseControl.RaiseThemeChanged(Object, ThemeChangedEventArgs)
    BaseControl.ThemeName
    BaseControl.ThemeNameChanged
    Namespace: Syncfusion.Windows.Forms
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public class ThemedControl : BaseControl, IThemeProvider, IVisualStyle, IDisposable

    Constructors

    ThemedControl()

    Declaration
    public ThemedControl()

    Properties

    ThemesEnabled

    Indicates whether themes are enabled for this control.

    Declaration
    public virtual bool ThemesEnabled { get; set; }
    Property Value
    Type
    System.Boolean

    Methods

    OnThemeChanged(EventArgs)

    Raises the ThemeChanged event.

    Declaration
    protected virtual void OnThemeChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    An EventArgs that contains the event data.

    Remarks

    The OnThemeChanged method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

    Note to Inheritors: When overriding OnThemeChanged in a derived class, be sure to call the base class's OnThemeChanged method so that registered delegates receive the event.

    WndProc(ref Message)

    Declaration
    protected override void WndProc(ref Message m)
    Parameters
    Type Name Description
    System.Windows.Forms.Message m

    Events

    ThemeChanged

    Fired when the ThemesEnabled property changes.

    Declaration
    public event EventHandler ThemeChanged
    Event Type
    Type
    System.EventHandler

    Implements

    IThemeProvider
    IVisualStyle
    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved