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)
- C#
- VB
- F#
[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
<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
Inherits IDisposable, IFocusScope
[<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.")>]
type IPopupHost =
interface
interface IDisposable
interface IFocusScope
end
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. |
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
TemplateApplied | Raised when the control's template is applied. |