Summary
Represents the top-level control opened by a
Popup
.
- Namespace
- Avalonia
.Controls .Primitives - Interfaces
-
- IDisposable
- IFocusScope
- Implementing Types
graph BT
Type-.->Interface0["IDisposable"]
Type-.->Interface1["IFocusScope"]
click Interface1 "/api/Avalonia.Input/IFocusScope"
Type["IPopupHost"]
class Type type-node
Implementing0["OverlayPopupHost"]-.->Type
click Implementing0 "/api/Avalonia.Controls.Primitives/OverlayPopupHost"
Implementing1["PopupRoot"]-.->Type
click Implementing1 "/api/Avalonia.Controls.Primitives/PopupRoot"
Syntax
public interface IPopupHost : IDisposable, IFocusScope
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
.
Events
Name | Type | Summary |
---|---|---|
TemplateApplied | EventHandler |
Raised when the control's template is applied.
|
Properties
Name | Value | Summary |
---|---|---|
HostedVisualTreeRoot | IVisual |
Gets the root of the visual tree in the case where the popup is presented using a
separate visual tree.
|
Presenter | IContentPresenter |
Gets the presenter from the control's template.
|
Methods
Name | Value | Summary |
---|---|---|
BindConstraints |
IDisposable |
Binds the constraints of the popup host to a set of properties, usally those present on
Popup .
|
ConfigurePosition |
void |
Configures the position of the popup according to a target control and a set of
placement parameters.
|
Hide |
void |
Hides the popup.
|
SetChild |
void |
Sets the control to display in the popup.
|
Show |
void |
Shows the popup.
|