Class ThemeValueSerializer
This class supports the design-time and XAML-related conversion from theme objects to strings and vice versa.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll
Syntax
public class ThemeValueSerializer : ValueSerializer
Constructors
ThemeValueSerializer()
Initializes a new instance of the ThemeValueSerializer class.
Declaration
public ThemeValueSerializer()
Methods
CanConvertFromString(String, IValueSerializerContext)
Determines whether the specified System.String can be converted to an instance of the type that the implementation of System.Windows.Markup.ValueSerializer supports.
Declaration
public override bool CanConvertFromString(string value, IValueSerializerContext context)
Parameters
System.String
value
String to evaluate for conversion. |
System.Windows.Markup.IValueSerializerContext
context
Context information that is used for conversion. |
Returns
System.Boolean
True if the value can be converted; otherwise, false. |
CanConvertToString(Object, IValueSerializerContext)
Determines whether the specified object can be converted into a System.String.
Declaration
public override bool CanConvertToString(object value, IValueSerializerContext context)
Parameters
System.Object
value
The object to evaluate for conversion. |
System.Windows.Markup.IValueSerializerContext
context
Context information that is used for conversion. |
Returns
System.Boolean
True if the |
ConvertFromString(String, IValueSerializerContext)
Converts a System.String to an instance of the type that the implementation of System.Windows.Markup.ValueSerializer supports.
Declaration
public override object ConvertFromString(string value, IValueSerializerContext context)
Parameters
System.String
value
The string to convert. |
System.Windows.Markup.IValueSerializerContext
context
Context information that is used for conversion. |
Returns
System.Object
A new instance of the type that the implementation of System.Windows.Markup.ValueSerializer supports based on the supplied |
Exceptions
System.NotSupportedException
|
ConvertToString(Object, IValueSerializerContext)
Converts the specified object to a System.String.
Declaration
public override string ConvertToString(object value, IValueSerializerContext context)
Parameters
System.Object
value
The object to convert into a string. |
System.Windows.Markup.IValueSerializerContext
context
Context information that is used for conversion. |
Returns
System.String
A string representation of the specified object. |
Exceptions
System.NotSupportedException
|