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
namestringThe 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
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
typeTypeThe extension type to look the default property up for.