IXamlMember IXamlMember IXamlMember Interface

Provides the means to report XAML-type system specifics about XAML members. Using this interface contract, XAML parsers can load any custom types and members thereof that are defined in your app and are referenced in XAML files.

Syntax

Declaration

public interface IXamlMemberpublic interface IXamlMemberPublic Interface IXamlMember

Remarks

For more info on IXamlType and IXamlMember and how these are used for XAML custom types, see "Remarks" section of IXamlType.

Properties summary

Gets a value that indicates whether the XAML member is an attachable member.

Gets a value that indicates whether the XAML member is implemented as a dependency property.

Gets whether the XAML member is read-only in its backing implementation.

Gets the XamlName name string that declares the XAML member.

Gets the IXamlType of the type where the member can exist.

Gets the IXamlType of the type that is used by the member.

Methods summary

Provides a get-value utility for this IXamlMember.

Provides a set-value utility for this IXamlMember.

Properties

  • IsAttachable
    IsAttachable
    IsAttachable
    IsAttachable

    Gets a value that indicates whether the XAML member is an attachable member.

    public bool IsAttachable { get; }public bool IsAttachable { get; }Public ReadOnly Property IsAttachable As bool

    Property Value

    • bool
      bool
      bool

      true if the XAML member is an attachable member; otherwise, false.

  • IsDependencyProperty
    IsDependencyProperty
    IsDependencyProperty
    IsDependencyProperty

    Gets a value that indicates whether the XAML member is implemented as a dependency property.

    public bool IsDependencyProperty { get; }public bool IsDependencyProperty { get; }Public ReadOnly Property IsDependencyProperty As bool

    Property Value

    • bool
      bool
      bool

      true if the XAML member is implemented as a dependency property; otherwise, false.

  • IsReadOnly
    IsReadOnly
    IsReadOnly
    IsReadOnly

    Gets whether the XAML member is read-only in its backing implementation.

    public bool IsReadOnly { get; }public bool IsReadOnly { get; }Public ReadOnly Property IsReadOnly As bool

    Property Value

    • bool
      bool
      bool

      true if the backing member is read-only; otherwise, false.

  • Name
    Name
    Name
    Name

    Gets the XamlName name string that declares the XAML member.

    public string Name { get; }public string Name { get; }Public ReadOnly Property Name As string

    Property Value

  • TargetType
    TargetType
    TargetType
    TargetType

    Gets the IXamlType of the type where the member can exist.

    public IXamlType TargetType { get; }public IXamlType TargetType { get; }Public ReadOnly Property TargetType As IXamlType

    Property Value

  • Type
    Type
    Type
    Type

    Gets the IXamlType of the type that is used by the member.

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

    Property Value

Methods

  • GetValue(System.Object)
    GetValue(System.Object)
    GetValue(System.Object)
    GetValue(System.Object)

    Provides a get-value utility for this IXamlMember.

    public object GetValue(System.Object)public object GetValue(System.Object)Public Function GetValue(System.Object) As object

    Parameters

    • instance
      System.Object
      System.Object
      System.Object

      The object instance to get the member value from.

    Returns

    • object
      object
      object

      The member value.

  • SetValue(System.Object,System.Object)
    SetValue(System.Object,System.Object)
    SetValue(System.Object,System.Object)
    SetValue(System.Object,System.Object)

    Provides a set-value utility for this IXamlMember.

    public void SetValue(System.Object,System.Object)public void SetValue(System.Object,System.Object)Public Function SetValue(System.Object,System.Object) As void

    Parameters

    • instance
      System.Object
      System.Object
      System.Object

      The object instance to set the member value on.

    • value
      System.Object
      System.Object
      System.Object

      The member value to set.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

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

Details

Assembly

Windows.UI.Xaml.Markup.dll