Table of Contents

Class MarkupExtensionDefaultPropertyAttribute

Namespace
Icy.Markup
Assembly
IcyUI.dll

Designates the property a markup extension's single positional argument sets, letting {Binding Path=Name} be written as the shorter {Binding Name}.

[AttributeUsage(AttributeTargets.Class, Inherited = true)]
public sealed class MarkupExtensionDefaultPropertyAttribute : Attribute
Inheritance
MarkupExtensionDefaultPropertyAttribute
Inherited Members
Extension Methods

Constructors

MarkupExtensionDefaultPropertyAttribute(string)

Designates the property a markup extension's single positional argument sets, letting {Binding Path=Name} be written as the shorter {Binding Name}.

public MarkupExtensionDefaultPropertyAttribute(string name)

Parameters

name string

The name of the property the positional argument is written into.

Properties

Name

Gets the name of the property the positional argument is written into.

public string Name { get; }

Property Value

string

Methods

GetDefaultPropertyName(Type)

Gets the default property's name declared by type or inherited from one of its base types.

public static string? GetDefaultPropertyName(Type type)

Parameters

type Type

The extension type to look the default property up for.

Returns

string

The property's name, or null when the type declares none.