TemplatedControlSetIsTemplateFocusTarget Method

Sets the value of the IsTemplateFocusTargetProperty attached property on a control.

Definition

Namespace: Avalonia.Controls.Primitives
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public static void SetIsTemplateFocusTarget(
	Control control,
	bool value
)

Parameters

control  Control
The control.
value  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