5 Xaml Members where [is attachable] is True

A type that defines members whose [is attachable] property is True will list them in a section that begins with “(attachable properties)”. The following FruitBowl type example defines a Children member for which the normal defaults apply. This FruitBowl type also defines an attachable member named ZIndex for which [is attachable] is True. (The other member defaults still apply for ZIndex.)

4.12 FruitBowl

(usage)

<FruitBowl>Fruit*</FruitBowl>

(description)

A container of fruit.

[types assignable to]

FruitBowl Object

[content property]

Children

(properties)

Children

FruitCollection

(description)

The items of fruit

(attachable properties)

FruitBowl.ZIndex

Int32

(description)

Indicates how deeply buried within the fruit bowl a piece of fruit is.

[target type]

Fruit

The name for an attachable member is specified as TypeName.MemberName. This is a syntactical convention to make it clear that this is an attachable property, and to illustrate how the property will look in a Xaml document. The [name] property of the XamlMember Information Item will only contain the MemberName part (the part after the period).

Show: