PopupTakesFocusFromNativeControl Property
Gets or sets a value indicating whether the popup, on show, transfers focus from any
focused native control to Avalonia. The default is true.
Namespace: Avalonia.Controls.PrimitivesAssembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public bool TakesFocusFromNativeControl { get; set; }
Public Property TakesFocusFromNativeControl As Boolean
Get
Set
member TakesFocusFromNativeControl : bool with get, set
Property Value
Boolean
This property only applies to advanced native control embedding scenarios. By default,
if a popup is shown when a native control is focused, focus is transferred back to
Avalonia in order for the popup to receive input. If this property is set to
false, then the shown popup will not receive input until it receives an
interaction which explicitly focuses the popup, such as a mouse click.