ThemeValueSerializer
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
Initializes a new instance of the ThemeValueSerializer class.
public ThemeValueSerializer()
Methods
Determines whether the specified string can be converted to an instance of the type that the implementation of supports.
Determines whether the specified object can be converted into a string.
public override bool CanConvertToString(object value, IValueSerializerContext context)
The object to evaluate for conversion.
contextIValueSerializerContextContext information that is used for conversion.
Returns:True if the value can be converted into a string; otherwise, false.
Converts a string to an instance of the type that the implementation of supports.
public override object ConvertFromString(string value, IValueSerializerContext context)
The string to convert.
contextIValueSerializerContextContext information that is used for conversion.
Returns:A new instance of the type that the implementation of supports based on the supplied value.
value cannot be converted.
Converts the specified object to a string.
public override string ConvertToString(object value, IValueSerializerContext context)
The object to convert into a string.
contextIValueSerializerContextContext information that is used for conversion.
Returns:A string representation of the specified object.
Exceptions:value cannot be converted.