IPopupHost Interface

Represents the top-level control opened by a Popup.

Definition

Namespace: Avalonia.Controls.Primitives
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
[NotClientImplementableAttribute]
[UnstableAttribute("This API may be removed in Avalonia 12. If you depend on this API, please open an issue with details of your use-case.")]
public interface IPopupHost : IDisposable, 
	IFocusScope
Implements
IFocusScope, IDisposable

Remarks

A popup host can be either be a popup window created by the operating system (PopupRoot) or an OverlayPopupHost which is created on an OverlayLayer.

Properties

Height Gets or sets the fixed height of the popup.
HostedVisualTreeRoot Gets the root of the visual tree in the case where the popup is presented using a separate visual tree.
MaxHeight Gets or sets the maximum height of the popup.
MaxWidth Gets or sets the maximum width of the popup.
MinHeight Gets or sets the minimum height of the popup.
MinWidth Gets or sets the minimum width of the popup.
Presenter Gets the presenter from the control's template.
Topmost Gets or sets whether the popup appears on top of all other windows.
Transform Gets or sets a transform that will be applied to the popup.
Width Gets or sets the fixed width of the popup.

Methods

ConfigurePosition(PopupPositionRequest) Configures the position of the popup according to a target control and a set of placement parameters.
DisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable)
Hide Hides the popup.
SetChild(Control) Sets the control to display in the popup.
Show Shows the popup.
TakeFocus Takes focus from any currently focused native control.

Events

TemplateApplied Raised when the control's template is applied.

See Also