ICustomProperty Interface

Definition

Implements custom property definition support for data binding sources that are implemented using COM.

Equivalent WinUI interface: Microsoft.UI.Xaml.Data.ICustomProperty.

public interface class ICustomProperty
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(819630784, 9192, 17056, 174, 124, 115, 74, 14, 93, 39, 130)]
/// [Windows.Foundation.Metadata.WebHostHidden]
struct ICustomProperty
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(819630784, 9192, 17056, 174, 124, 115, 74, 14, 93, 39, 130)]
[Windows.Foundation.Metadata.WebHostHidden]
public interface ICustomProperty
Public Interface ICustomProperty
Attributes

Windows 10 requirements

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

Remarks

ICustomProperty represents a property on an instance of an object, but the calling patterns support the ability to implement the interface per owner type.

Properties

CanRead

Gets a value that determines whether the custom property supports read access.

Equivalent WinUI property: Microsoft.UI.Xaml.Data.ICustomProperty.CanRead.

CanWrite

Gets a value that determines whether the custom property supports write access.

Equivalent WinUI property: Microsoft.UI.Xaml.Data.ICustomProperty.CanWrite.

Name

Gets the path-relevant name of the property.

Equivalent WinUI property: Microsoft.UI.Xaml.Data.ICustomProperty.Name.

Type

Gets the underlying type of the custom property.

Equivalent WinUI property: Microsoft.UI.Xaml.Data.ICustomProperty.Type.

Methods

GetIndexedValue(Object, Object)

Gets the value at an index location, for cases where the custom property has indexer support.

Equivalent WinUI method: Microsoft.UI.Xaml.Data.ICustomProperty.GetIndexedValue.

GetValue(Object)

Gets the value of the custom property from a particular instance.

Equivalent WinUI method: Microsoft.UI.Xaml.Data.ICustomProperty.GetValue.

SetIndexedValue(Object, Object, Object)

Sets the value at an index location, for cases where the custom property has indexer support.

Equivalent WinUI method: Microsoft.UI.Xaml.Data.ICustomProperty.SetIndexedValue.

SetValue(Object, Object)

Sets the custom property value on a specified instance.

Equivalent WinUI method: Microsoft.UI.Xaml.Data.ICustomProperty.SetValue.

Applies to

See also