Summary
Sets the value of the IsTemplateFocusTargetProperty attached property on a control.
- Namespace
- Avalonia
.Controls .Primitives - Containing Type
- TemplatedControl
Syntax
public static void SetIsTemplateFocusTarget(Control control, bool 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.
Parameters
Name | Type | Description |
---|---|---|
control | Control | The control. |
value | bool | The property value. |
Return Value
Type | Description |
---|---|
void |