XamlValueConverter<TConverterBase> Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
generic <typename TConverterBase>
where TConverterBase : classpublic ref class XamlValueConverter : IEquatable<System::Xaml::Schema::XamlValueConverter<TConverterBase> ^>
public class XamlValueConverter<TConverterBase> : IEquatable<System.Xaml.Schema.XamlValueConverter<TConverterBase>> where TConverterBase : class
type XamlValueConverter<'ConverterBase (requires 'ConverterBase : null)> = class
interface IEquatable<XamlValueConverter<'ConverterBase>>
Public Class XamlValueConverter(Of TConverterBase)
Implements IEquatable(Of XamlValueConverter(Of TConverterBase))
- TConverterBase
The CLR base class for the particular converter that this XamlValueConverter<TConverterBase> represents. Typically this is one of the following: TypeConverter; MarkupExtension; ValueSerializer.
- Inheritance
-
XamlValueConverter<TConverterBase>
- Implements
-
IEquatable<XamlValueConverter<TConverterBase>>
Instances of this type are returned by methods of the XAML schema API such as LookupTypeConverter. The generic implementation of XamlValueConverter<TConverterBase> 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 XamlValueConverter<TConverterBase> can be constructed with a null implementation type, but such a XamlValueConverter<TConverterBase> will return null
for CreateInstance.
Constructor signatures for XamlValueConverter<TConverterBase> use a converterType
parameter that references the specific type that implements the conversion behavior. For a properly functioning XamlValueConverter<TConverterBase> (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.
Xaml |
Initializes a new instance of the XamlValueConverter<TConverterBase> class, based on a converter implementing Type the target/destination type of the XamlValueConverter<TConverterBase>, and a string name. |
Xaml |
Initializes a new instance of the XamlValueConverter<TConverterBase> class, based on a converter implementing Type and the target/destination type of the XamlValueConverter<TConverterBase>. |
Converter |
Gets a created instance of the converter implementation. |
Converter |
Gets the Type for the class that implements the converter behavior. |
Name |
Gets a string name for this XamlValueConverter<TConverterBase>. |
Target |
Gets the target/destination XamlType of the XamlValueConverter<TConverterBase>. |
Create |
Returns an instance of the converter implementation. |
Equals(Object) |
Determines whether this instance of XamlValueConverter<TConverterBase> and a specified object, which must also be a XamlValueConverter<TConverterBase> object, have the same value. |
Equals(Xaml |
Determines whether this instance of XamlValueConverter<TConverterBase> and another XamlValueConverter<TConverterBase> object have the same value. |
Get |
Returns the hash code for this XamlValueConverter<TConverterBase>. |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
To |
Returns a String that represents this XamlValueConverter<TConverterBase>. |
Equality(Xaml |
Determines whether two specified XamlValueConverter<TConverterBase> objects have the same value. |
Inequality(Xaml |
Determines whether two specified XamlValueConverter<TConverterBase> objects have different values. |
製品 | バージョン |
---|---|
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
.NET に関するフィードバック
.NET はオープンソース プロジェクトです。 フィードバックを提供するにはリンクを選択します。