IXamlTypeResolver Interface
Definition
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.
Represents a service that resolves from named elements in XAML markup to the appropriate CLR type.
public interface class IXamlTypeResolver
public interface IXamlTypeResolver
type IXamlTypeResolver = interface
Public Interface IXamlTypeResolver
Remarks
The IXamlTypeResolver class is used primarily by TypeConverter and MarkupExtension authors as a service to determine the XAML-to-CLR type mapping that is necessary for constructing a CLR object.
Type converters and markup extensions can query for IXamlTypeResolver as a service on the service context that is provided by a XAML object writer, when the XAML object writer invokes value conversion behavior. For more information, see Type Converters and Markup Extensions for XAML and Service Contexts Available to Type Converters and Markup Extensions.
In previous versions of the .NET Framework, this interface existed in the WPF-specific assembly WindowsBase. In .NET Framework 4, IXamlTypeResolver is in the System.Xaml assembly. For more information, see Types Migrated from WPF to System.Xaml.
Methods
Resolve(String) |
Resolves a named XAML type to the corresponding CLR Type. |
Applies to
See also
Povratne informacije
https://aka.ms/ContentUserFeedback.
Stiže uskoro: Tijekom 2024. postupno ćemo ukinuti servis Problemi sa servisom GitHub kao mehanizam za povratne informacije za sadržaj i zamijeniti ga novim sustavom za povratne informacije. Dodatne informacije potražite u članku:Pošaljite i pogledajte povratne informacije za