IXamlNameProvider 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.
Provides a service that is used during save and write operations to input an object and return a XAML name.
public interface class IXamlNameProvider
public interface IXamlNameProvider
type IXamlNameProvider = interface
Public Interface IXamlNameProvider
Remarks
This service is only relevant for a save path operation, such as when a XamlXmlWriter serializes an attributed value converter usage, and the type converter or value serializer supports serialization. A XamlObjectWriter does not provide the service in its service context.
A type converter or value serializer can access this service by using an available schema context as a service provider and then obtaining the IXamlNameProvider service that is implemented in that context. For more information, see Type Converters and Markup Extensions for XAML and Service Contexts Available to Type Converters and Markup Extensions.
To correctly use XAML-defined names, you may also need to obtain information about the acting XAML namescope and the INameScope value that represents it.
Methods
GetName(Object) |
Retrieves the XAML name of the specified object. |
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기