Provides a unified way of converting types of values to other types, as well as for accessing standard values and subproperties.
Namespace:
System.ComponentModel
Assembly:
System (in System.dll)
Visual Basic (Declaration)
Public Class TypeConverter
Dim instance As TypeConverter
public class TypeConverter
The most common type of converter is one that converts to and from a text representation. The type converter for a class is bound to the class with a TypeConverterAttribute. Unless this attribute is overridden, all classes that inherit from this class use the same type converter as the base class.
The most common use of TypeConverter in Silverlight is to provide the processing for setting XAML attributes and generating object values, both for Silverlight defined classes and custom classes. See TypeConverters and XAML.
For supporting the string creation syntax of custom types that are specified as attributes in XAML, you should at a minimum implement CanConvertFrom(ITypeDescriptorContext, Type) and ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) in your TypeConverter class.
System..::.Object
System.ComponentModel..::.TypeConverter
System..::.UriTypeConverter
System.Windows.Controls..::.DataGridLengthConverter
System.Windows.Controls..::.DateTimeTypeConverter
System.Windows..::.DurationConverter
System.Windows.Media..::.ImageSourceConverter
System.Windows..::.NullableBoolConverter
System.Windows..::.PropertyPathConverter
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Reference
Other Resources