I​Xaml​Member I​Xaml​Member I​Xaml​Member Interface

Definition

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.

public interface IXamlMemberpublic interface IXamlMemberPublic Interface IXamlMember
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

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

Properties

IsAttachable IsAttachable IsAttachable

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

public PlatForm::Boolean IsAttachable { get; }public bool IsAttachable { get; }Public ReadOnly Property IsAttachable As bool
Value
bool bool bool

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

Attributes
See Also

IsDependencyProperty IsDependencyProperty IsDependencyProperty

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

public PlatForm::Boolean IsDependencyProperty { get; }public bool IsDependencyProperty { get; }Public ReadOnly Property IsDependencyProperty As bool
Value
bool bool bool

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

Attributes
See Also

IsReadOnly IsReadOnly IsReadOnly

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

public PlatForm::Boolean IsReadOnly { get; }public bool IsReadOnly { get; }Public ReadOnly Property IsReadOnly As bool
Value
bool bool bool

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

Attributes
See Also

Name Name Name

Gets the XamlName name string that declares the XAML member.

public PlatForm::String Name { get; }public string Name { get; }Public ReadOnly Property Name As string
Value
string string string

The XamlName name string that declares the XAML member.

Attributes

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
Value
IXamlType IXamlType IXamlType

The IXamlType of the type where the member can exist.

Attributes

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
Value
IXamlType IXamlType IXamlType

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

Attributes

Methods

GetValue(Object) GetValue(Object) GetValue(Object)

Provides a get-value utility for this IXamlMember.

public PlatForm::Object GetValue(Object instance)public object GetValue(Object instance)Public Function GetValue(instance As 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.

Attributes

SetValue(Object, Object) SetValue(Object, Object) SetValue(Object, Object)

Provides a set-value utility for this IXamlMember.

public void SetValue(Object instance, Object value)public void SetValue(Object instance, Object value)Public Function SetValue(instance As Object, value As 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.

Attributes

See Also