RegisterInNameScope<T> Method
Definition
Namespace: Avalonia.Controls.Templates
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
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
Parameters
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