TemplatedControlSetIsTemplateFocusTarget Method
Sets the value of the IsTemplateFocusTargetProperty attached property on a control.
Namespace: Avalonia.Controls.PrimitivesAssembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
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
- control Control
- The control.
- value Boolean
- The property value.
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.