Skip to main content

Name Property

Gets or sets the name of the styled element.

Definition

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public string? Name { get; set; }

Property Value

String

Implements

INamed.Name

Remarks

An element's name is used to uniquely identify an element within the element's name scope. Once the element is added to a logical tree, its name cannot be changed.

See Also

Reference

StyledElement Class
Avalonia Namespace