Class
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:

cs-api-definition
[Obsolete("Will be removed Q3 2012", false)]
public class ThemeValueSerializer : ValueSerializer

Inheritance: objectThemeValueSerializer

Constructors

ThemeValueSerializer()

Initializes a new instance of the ThemeValueSerializer class.

Declaration

cs-api-definition
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

cs-api-definition
public override bool CanConvertFromString(string value, IValueSerializerContext context)

Parameters

value

string

String to evaluate for conversion.

context

IValueSerializerContext

Context information that is used for conversion.

Returns

bool

True if the value can be converted; otherwise, false.

CanConvertToString(object, IValueSerializerContext)

Determines whether the specified object can be converted into a string.

Declaration

cs-api-definition
public override bool CanConvertToString(object value, IValueSerializerContext context)

Parameters

value

object

The object to evaluate for conversion.

context

IValueSerializerContext

Context information that is used for conversion.

Returns

bool

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

cs-api-definition
public override object ConvertFromString(string value, IValueSerializerContext context)

Parameters

value

string

The string to convert.

context

IValueSerializerContext

Context information that is used for conversion.

Returns

object

A new instance of the type that the implementation of supports based on the supplied value.

Exceptions

NotSupportedException

value cannot be converted.

ConvertToString(object, IValueSerializerContext)

Converts the specified object to a string.

Declaration

cs-api-definition
public override string ConvertToString(object value, IValueSerializerContext context)

Parameters

value

object

The object to convert into a string.

context

IValueSerializerContext

Context information that is used for conversion.

Returns

string

A string representation of the specified object.

Exceptions

NotSupportedException

value cannot be converted.