Skip to main content

SetNameScope Method

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

Definition

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

public static void SetNameScope(
StyledElement styled,
INameScope value
)

Parameters

  StyledElement
The styled element.
  INameScope
The value to set.

See Also

Reference

NameScope Class
Avalonia.Controls Namespace