ICustomPropertyProvider ICustomPropertyProvider ICustomPropertyProvider Interface

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.

Syntax

Declaration

public interface ICustomPropertyProviderpublic interface ICustomPropertyProviderPublic Interface ICustomPropertyProvider

Properties summary

Gets the underlying type of the custom property.

Methods summary

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

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

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.

Properties

  • Type
    Type
    Type
    Type

    Gets the underlying type of the custom property.

    public TypeName Type { get; }public TypeName Type { get; }Public ReadOnly Property Type As TypeName

    Property Value

    • The underlying type, with relevant information as the values of the TypeName structure. TypeName provides the infrastructure such that property backing does not have to take a dependency on the common language runtime (CLR) and System.Type.

Methods

  • GetCustomProperty(System.String)
    GetCustomProperty(System.String)
    GetCustomProperty(System.String)
    GetCustomProperty(System.String)

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

    public ICustomProperty GetCustomProperty(System.String name)public ICustomProperty GetCustomProperty(System.String name)Public Function GetCustomProperty(name As System.String) As ICustomProperty

    Parameters

    • name
      System.String
      System.String
      System.String

      The name of the property to get the support object for.

    Returns

  • GetIndexedProperty(System.String,Windows.UI.Xaml.Interop.TypeName)
    GetIndexedProperty(System.String,Windows.UI.Xaml.Interop.TypeName)
    GetIndexedProperty(System.String,Windows.UI.Xaml.Interop.TypeName)
    GetIndexedProperty(System.String,Windows.UI.Xaml.Interop.TypeName)

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

    public ICustomProperty GetIndexedProperty(System.String name,Windows.UI.Xaml.Interop.TypeName type)public ICustomProperty GetIndexedProperty(System.String name,Windows.UI.Xaml.Interop.TypeName type)Public Function GetIndexedProperty(name As System.String,type As Windows.UI.Xaml.Interop.TypeName) As ICustomProperty

    Parameters

    • name
      System.String
      System.String
      System.String

      The name of the property to get the support object for.

    • type

      The type of the indexed collection, specified as a TypeName wrapper.

    Returns

  • GetStringRepresentation()
    GetStringRepresentation()
    GetStringRepresentation()
    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.

    public string GetStringRepresentation()public string GetStringRepresentation()Public Function GetStringRepresentation() As string

    Returns

    • string
      string
      string

      The provided string.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.GuidAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute
Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.UI.Xaml.Data.dll