ICustomPropertyProvider Interface

Definition

Provides lookup service for ICustomProperty support. This interface is implemented by objects so that their custom defined properties can be used as run-time binding sources.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Data.ICustomPropertyProvider (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

public interface class ICustomPropertyProvider
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(2089965397, 15944, 17076, 134, 119, 118, 55, 34, 103, 3, 63)]
struct ICustomPropertyProvider
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(2089965397, 15944, 17076, 134, 119, 118, 55, 34, 103, 3, 63)]
public interface ICustomPropertyProvider
Public Interface ICustomPropertyProvider
Derived
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Properties

Type

Gets the underlying type of the custom property.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Data.ICustomPropertyProvider.Type (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

Methods

GetCustomProperty(String)

Gets a custom property's ICustomProperty support object by specifying a property name.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Data.ICustomPropertyProvider.GetCustomProperty (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

GetIndexedProperty(String, TypeName)

Gets a custom property's ICustomProperty support object by specifying a property name and the type of the indexed collection.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Data.ICustomPropertyProvider.GetIndexedProperty (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

GetStringRepresentation()

Provides support for "GetStringFromObject" and/or "ToString" logic on the assumption that the implementation supports System.Object. This logic might be accessed by features or services such as generating UI Automation values based on data content.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Data.ICustomPropertyProvider.GetStringRepresentation (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

Applies to

See also