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