Skip to main content

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)

public static void SetIsTemplateFocusTarget(
Control control,
bool value
)

Parameters

  Control
The control.
  Boolean
The property value.

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