Skip to main content

RegisterInNameScope<T> Method

Definition

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

public static T RegisterInNameScope<T>(
this T control,
INameScope scope
)
where T : StyledElement

Parameters

  T
 
  INameScope
 

Type Parameters

Return Value

T

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type T. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

FuncTemplateNameScopeExtensions Class
Avalonia.Controls.Templates Namespace