XmlTheme
Represents a theme for a telerik control. Themes can be serialized and deserialized, thus saving and loading the theme for a given control. XmlTheme implements IXmlSerializable which provides custom formatting for XML serialization and deserialization.
Definition
Namespace:Telerik.WinControls
Assembly:Telerik.WinControls.dll
Syntax:
public class XmlTheme : IXmlSerializable
Inheritance: objectXmlTheme
Implements:
Constructors
Initializes a new instance of the XmlTheme class.
public XmlTheme()
Initializes a new instance of the XmlTheme class from XmlStyleSheet, control type, and element type.
public XmlTheme(XmlStyleSheet style, string controlType, string elementType)
Properties
Gets or sets the Builder Registration for the theme. Each builder registration corresponds to a theme for single telerik control.
public XmlStyleBuilderRegistration[] BuilderRegistrations { get; set; }
Gets value indicating whether this XmlTheme defines StyleRepository
public bool HasRepository { get; }
StyleRepository
XmlStyleRepository
Get the StyleRepository associated with this theme.
public XmlStyleRepository StyleRepository { get; }
Gets or sets a string value indicating the theme name.
public string ThemeName { get; set; }
public string ThemeVersion { get; set; }
Methods
Load a XML theme from a TextReader.
Saves the theme to a XMLWriter.