Skip to main content

ConstructorArgumentAttribute Class

Definition

Assembly:Avalonia.Base
Package:Avalonia

Indicates that a property corresponds to a named parameter in the constructor.

public class ConstructorArgumentAttribute

Inheritance: Attribute -> ConstructorArgumentAttribute

Remarks

This attribute is used for XAML.

Constructors

NameDescription
ConstructorArgumentAttributeIndicates that a property corresponds to a named parameter in the constructor.

ConstructorArgumentAttribute Constructor

Indicates that a property corresponds to a named parameter in the constructor.

public ConstructorArgumentAttribute(string name)

Parameters

name string

The name of the parameter in the constructor.

Remarks

This attribute is used for XAML.

Properties

NameDescription
NameGets the name of the parameter in the constructor.

Name Property

Gets the name of the parameter in the constructor.

public string Name { get; set; }