ClassXmlTheme
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
XmlTheme()
Initializes a new instance of the XmlTheme class.
Declaration
public XmlTheme()
XmlTheme(XmlStyleSheet, string, string)
Initializes a new instance of the XmlTheme class from XmlStyleSheet, control type, and element type.
Declaration
public XmlTheme(XmlStyleSheet style, string controlType, string elementType)
Parameters
style
controlType
elementType
Properties
BuilderRegistrations
Gets or sets the Builder Registration for the theme. Each builder registration corresponds to a theme for single telerik control.
Declaration
public XmlStyleBuilderRegistration[] BuilderRegistrations { get; set; }
Property Value
HasRepository
Gets value indicating whether this XmlTheme defines StyleRepository
StyleRepository
Get the StyleRepository associated with this theme.
Declaration
public XmlStyleRepository StyleRepository { get; }
Property Value
XmlStyleRepository
ThemeName
Gets or sets a string value indicating the theme name.
Methods
DeserializePartially(XmlReader)
Declaration
public void DeserializePartially(XmlReader reader)
Parameters
reader
DeserializeType(string)
Deserializes the provided deserialization string.
LoadFromReader(TextReader)
Load a XML theme from a TextReader.
Declaration
public static XmlTheme LoadFromReader(TextReader reader)
Parameters
reader
Returns
LoadFromReader(XmlReader)
Loads a theme from a XML reader.
LoadFromStram(Stream)
Loads a theme from a System.IO.Stream instance.
SaveToWriter(XmlWriter)
Saves the theme to a XMLWriter.
Declaration
public void SaveToWriter(XmlWriter writer)
Parameters
writer
SerializeType(Type)
Retrieves the serialization string of the given type.