FuncTemplateNameScopeExtensionsRegisterInNameScopeT Method
Namespace: Avalonia.Controls.TemplatesAssembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public static T RegisterInNameScope<T>(
this T control,
INameScope scope
)
where T : StyledElement
<ExtensionAttribute>
Public Shared Function RegisterInNameScope(Of T As StyledElement) (
control As T,
scope As INameScope
) As T
[<ExtensionAttribute>]
static member RegisterInNameScope :
control : 'T *
scope : INameScope -> 'T when 'T : StyledElement
- control T
-
- scope INameScope
-
- T
TIn 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).