Class ThemeHelper
A helper class that provides the functionality to merge the styles from the XML configuration to the element style.
Inheritance
System.Object
ThemeHelper
Namespace: Syncfusion.WinForms.Theme
Assembly: Syncfusion.Shared.Base.dll
Syntax
public abstract class ThemeHelper : Object
Constructors
ThemeHelper()
Declaration
protected ThemeHelper()
Methods
IsVisualStyleBasedTheme(IThemeProvider)
Helps to retrieve whether the applied Theme is built-in or VisualStyle based theme.
Declaration
public static bool IsVisualStyleBasedTheme(IThemeProvider provider)
Parameters
| Type | Name | Description |
|---|---|---|
| IThemeProvider | provider |
Returns
| Type | Description |
|---|---|
| System.Boolean | Whether the applied theme is VisualStyle based theme or not |
LoadAssembly(Assembly)
Loads the assembly to register the theme XML configured files.
Declaration
public static void LoadAssembly(Assembly assembly)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Reflection.Assembly | assembly | An assembly that has the theme XML configuration file. |
ReadControlTags(IThemeProvider, Object, XmlReader)
Reads the control tag elements.
Declaration
public static void ReadControlTags(IThemeProvider provider, object visualStyles, XmlReader xmlReader)
Parameters
| Type | Name | Description |
|---|---|---|
| IThemeProvider | provider | The IThemeProvider. |
| System.Object | visualStyles | The object that needs to be merged. |
| System.Xml.XmlReader | xmlReader | The xml reader. |
ReadControlTags(String, Object, XmlReader)
Reads the control tag elements.
Declaration
public static void ReadControlTags(string controlName, object visualStyles, XmlReader xmlReader)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | controlName | Name of the control. |
| System.Object | visualStyles | The object that needs to be merged. |
| System.Xml.XmlReader | xmlReader | The xml reader. |