Skip to main content

GetNameScope Method

Gets the value of the attached NameScopeProperty on a styled element.

Definition​

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

public static INameScope GetNameScope(
StyledElement styled
)

Parameters​

  StyledElement
The styled element.

Return Value​

INameScope
The value of the NameScope attached property.

See Also​

Reference​

NameScope Class
Avalonia.Controls Namespace