Provides a common API surface for techniques that generate initialization or serialization values for XAML based on input other than the eventual destination type. This includes markup extensions and type converters.
Assembly: System.Xaml (in System.Xaml.dll)
public class XamlValueConverter<TConverterBase> : IEquatable<XamlValueConverter<TConverterBase>> where TConverterBase : class
Thetype exposes the following members.
|XamlValueConverter<TConverterBase>(Type, XamlType)||Initializes a new instance of the class, based on a converter implementing Type and the target/destination type of the .|
|XamlValueConverter<TConverterBase>(Type, XamlType, String)||Initializes a new instance of the class, based on a converter implementing Type the target/destination type of the , and a string name.|
|CreateInstance||Returns an instance of the converter implementation.|
|Equals(Object)||Determines whether this instance of and a specified object, which must also be a object, have the same value. (Overrides Object.Equals(Object).)|
|Equals(XamlValueConverter<TConverterBase>)||Determines whether this instance of and another object have the same value.|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Returns the hash code for this . (Overrides Object.GetHashCode().)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns a String that represents this . (Overrides Object.ToString().)|
Instances of this type are returned by methods of the XAML schema API such as LookupTypeConverter. The generic implementation of provides indirection for the System.Xaml assembly so that the basic XAML schema and type system does not have to take dependencies on different value conversion techniques that are typically implementations in other assemblies.
A can be constructed with a null implementation type, but such a will return null for CreateInstance.
Constructor signatures for use a converterType parameter that references the specific type that implements the conversion behavior. For a properly functioning (one that has a nonnull ConverterInstance), the converterType type is expected to be castable to the TConverterBase constraint. A mismatch condition is not enforced by constructors, but might produce an InvalidCastException at run time.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.