SetIsTemplateFocusTarget Method
Sets the value of the IsTemplateFocusTargetProperty attached property on a control.
Definition
Namespace: Avalonia.Controls.Primitives
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
public static void SetIsTemplateFocusTarget(
Control control,
bool value
)
Public Shared Sub SetIsTemplateFocusTarget (
control As Control,
value As Boolean
)
static member SetIsTemplateFocusTarget :
control : Control *
value : bool -> unit
Parameters
Remarks
When a control is navigated to using the keyboard, a focus adorner is shown - usually around the control itself. However if the TemplatedControl.IsTemplateFocusTarget attached property is set to true on an element in the control template, then the focus adorner will be shown around that control instead.
See Also
Reference
TemplatedControl Class
Avalonia.Controls.Primitives Namespace