Skip to main content

IPopupHost Interface

Unstable.

Note: This API is unstable and may change in a future release.

Not client implementable.

Note: This interface is not client implementable. You need to enable PrivateApi if you want to implement this interface.

Represents the top-level control opened by a Popup.

Definition

Namespace: Avalonia.Controls.Primitives
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

[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
View Source
ImplementsIFocusScope, 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

HeightGets or sets the fixed height of the popup.
HostedVisualTreeRootGets the root of the visual tree in the case where the popup is presented using a separate visual tree.
MaxHeightGets or sets the maximum height of the popup.
MaxWidthGets or sets the maximum width of the popup.
MinHeightGets or sets the minimum height of the popup.
MinWidthGets or sets the minimum width of the popup.
PresenterGets the presenter from the control's template.
TopmostGets or sets whether the popup appears on top of all other windows.
TransformGets or sets a transform that will be applied to the popup.
WidthGets 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.
Dispose()Performs 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

TemplateAppliedRaised when the control's template is applied.

See Also

Reference

Avalonia.Controls.Primitives Namespace