Export (0) Print
Expand All

IXamlNameProvider Interface

Provides a service that is used during save and write operations to input an object and return a XAML name.

Namespace:  System.Xaml
Assembly:  System.Xaml (in System.Xaml.dll)

public interface IXamlNameProvider

The IXamlNameProvider type exposes the following members.

  NameDescription
Public methodGetNameRetrieves the XAML name of the specified object.
Top

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.

.NET Framework

Supported in: 4.5, 4

.NET Framework Client Profile

Supported in: 4

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.

Show:
© 2014 Microsoft