Class ThemedControl
A System.Windows.Forms.Control implementing the IThemedControl interface.
Inheritance
System.Object
ThemedControl
Inherited Members
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
System.IDisposable