Skip to main content

PopupFlyoutBase Class

Definition​

Assembly:Avalonia.Controls
Package:Avalonia
public class PopupFlyoutBase

Inheritance: object -> AvaloniaObject -> FlyoutBase -> PopupFlyoutBase

Derived types: Flyout, MenuFlyout

Implements: IPopupHostProvider

Constructors​

NameDescription
PopupFlyoutBaseNo summary available.

PopupFlyoutBase Constructor​

public PopupFlyoutBase()

Methods​

NameDescription
Bind (8 overloads)Binds a Avalonia.AvaloniaProperty to an Avalonia.Data.BindingBase. Inherited from AvaloniaObject.
CheckAccessReturns a value indicating whether the current thread is the UI thread. Inherited from AvaloniaObject.
ClearValue (4 overloads)Clears a Avalonia.AvaloniaProperty's local value. Inherited from AvaloniaObject.
CoerceValueCoerces the specified Avalonia.AvaloniaProperty. Inherited from AvaloniaObject.
EqualsCompares two objects using reference equality. Inherited from AvaloniaObject.
GetAttachedFlyoutInherited from FlyoutBase.
GetBaseValueInherited from AvaloniaObject.
GetHashCodeGets the hash code for the object. Inherited from AvaloniaObject.
GetValue (3 overloads)Gets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject.
HideHides the Flyout
IsAnimatingChecks whether a Avalonia.AvaloniaProperty is animating. Inherited from AvaloniaObject.
IsSetChecks whether a Avalonia.AvaloniaProperty is set on this object. Inherited from AvaloniaObject.
SetAttachedFlyoutInherited from FlyoutBase.
SetCurrentValue (2 overloads)Sets the value of a dependency property without changing its value source. Inherited from AvaloniaObject.
SetValue (3 overloads)Sets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject.
ShowAt (2 overloads)Shows the Flyout at the given Control
ShowAttachedFlyoutInherited from FlyoutBase.
VerifyAccessChecks that the current thread is the UI thread and throws if not. Inherited from AvaloniaObject.

Hide Method​

Hides the Flyout

public void Hide()

ShowAt overloads​

ShowAt Method​

Shows the Flyout at the given Control

public void ShowAt(Avalonia.Controls.Control placementTarget)
Parameters​

placementTarget Avalonia.Controls.Control

The control to show the Flyout at

ShowAt Method​

Shows the Flyout for the given control at the current pointer location, as in a ContextFlyout

public void ShowAt(Avalonia.Controls.Control placementTarget, bool showAtPointer)
Parameters​

placementTarget Avalonia.Controls.Control

The target control

showAtPointer bool

True to show at pointer

Properties​

NameDescription
CustomPopupPlacementCallbackGets or sets a delegate handler method that positions the Popup control, when Avalonia.Controls.Primitives.Popup.Placement is set to Avalonia.Controls.PlacementMode.Custom.
DispatcherReturns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject.
HorizontalOffsetGets or sets the Horizontal offset of the popup in relation to the Avalonia.Controls.Primitives.Popup.PlacementTarget.
IsOpenGets or sets whether this Flyout is currently open. Inherited from FlyoutBase.
ItemInherited from AvaloniaObject.
OverlayDismissEventPassThroughGets or sets a value indicating whether the event that closes the flyout is passed through to the parent window.
OverlayInputPassThroughElementGets or sets an element that should receive pointer input events even when underneath the flyout's overlay.
PlacementGets or sets the desired placement of the popup in relation to the Avalonia.Controls.Primitives.Popup.PlacementTarget.
PlacementAnchorGets or sets the anchor point on the Avalonia.Controls.Primitives.Popup.PlacementRect when Avalonia.Controls.Primitives.Popup.Placement is Avalonia.Controls.PlacementMode.AnchorAndGravity.
PlacementConstraintAdjustmentGets or sets a value describing how the popup position will be adjusted if the unadjusted position would result in the popup being partly constrained.
PlacementGravityGets or sets a value which defines in what direction the popup should open when Avalonia.Controls.Primitives.Popup.Placement is Avalonia.Controls.PlacementMode.AnchorAndGravity.
PopupNo summary available.
ShowModeGets or sets the desired ShowMode
TargetGets the Target used for showing the Flyout Inherited from FlyoutBase.
VerticalOffsetGets or sets the Vertical offset of the popup in relation to the Avalonia.Controls.Primitives.Popup.PlacementTarget.

CustomPopupPlacementCallback Property​

Gets or sets a delegate handler method that positions the Popup control, when Avalonia.Controls.Primitives.Popup.Placement is set to Avalonia.Controls.PlacementMode.Custom.

public Avalonia.Controls.Primitives.PopupPositioning.CustomPopupPlacementCallback CustomPopupPlacementCallback { get; set; }

HorizontalOffset Property​

Gets or sets the Horizontal offset of the popup in relation to the Avalonia.Controls.Primitives.Popup.PlacementTarget.

public double HorizontalOffset { get; set; }

OverlayDismissEventPassThrough Property​

Gets or sets a value indicating whether the event that closes the flyout is passed through to the parent window.

public bool OverlayDismissEventPassThrough { get; set; }

Remarks​

Clicks outside the popup cause the popup to close. When Avalonia.Controls.Primitives.PopupFlyoutBase.OverlayDismissEventPassThrough is set to false, these clicks will be handled by the popup and not be registered by the parent window. When set to true, the events will be passed through to the parent window.

OverlayInputPassThroughElement Property​

Gets or sets an element that should receive pointer input events even when underneath the flyout's overlay.

public Avalonia.Input.IInputElement OverlayInputPassThroughElement { get; set; }

Placement Property​

Gets or sets the desired placement of the popup in relation to the Avalonia.Controls.Primitives.Popup.PlacementTarget.

public Avalonia.Controls.PlacementMode Placement { get; set; }

PlacementAnchor Property​

Gets or sets the anchor point on the Avalonia.Controls.Primitives.Popup.PlacementRect when Avalonia.Controls.Primitives.Popup.Placement is Avalonia.Controls.PlacementMode.AnchorAndGravity.

public Avalonia.Controls.Primitives.PopupPositioning.PopupAnchor PlacementAnchor { get; set; }

PlacementConstraintAdjustment Property​

Gets or sets a value describing how the popup position will be adjusted if the unadjusted position would result in the popup being partly constrained.

public Avalonia.Controls.Primitives.PopupPositioning.PopupPositionerConstraintAdjustment PlacementConstraintAdjustment { get; set; }

PlacementGravity Property​

Gets or sets a value which defines in what direction the popup should open when Avalonia.Controls.Primitives.Popup.Placement is Avalonia.Controls.PlacementMode.AnchorAndGravity.

public Avalonia.Controls.Primitives.PopupPositioning.PopupGravity PlacementGravity { get; set; }
public Avalonia.Controls.Primitives.Popup Popup { get; set; }

ShowMode Property​

Gets or sets the desired ShowMode

public Avalonia.Controls.FlyoutShowMode ShowMode { get; set; }

VerticalOffset Property​

Gets or sets the Vertical offset of the popup in relation to the Avalonia.Controls.Primitives.Popup.PlacementTarget.

public double VerticalOffset { get; set; }

Fields​

CustomPopupPlacementCallbackProperty Field​

Defines the Avalonia.Controls.Primitives.Popup.CustomPopupPlacementCallback property.

public Avalonia.StyledProperty<Avalonia.Controls.Primitives.PopupPositioning.CustomPopupPlacementCallback> CustomPopupPlacementCallbackProperty

HorizontalOffsetProperty Field​

Defines the Avalonia.Controls.Primitives.Popup.HorizontalOffset property.

public Avalonia.StyledProperty<double> HorizontalOffsetProperty

OverlayDismissEventPassThroughProperty Field​

Defines the Avalonia.Controls.Primitives.PopupFlyoutBase.OverlayDismissEventPassThrough property

public Avalonia.StyledProperty<bool> OverlayDismissEventPassThroughProperty

OverlayInputPassThroughElementProperty Field​

Defines the Avalonia.Controls.Primitives.PopupFlyoutBase.OverlayInputPassThroughElement property

public Avalonia.StyledProperty<Avalonia.Input.IInputElement> OverlayInputPassThroughElementProperty

PlacementAnchorProperty Field​

Defines the Avalonia.Controls.Primitives.Popup.PlacementAnchor property.

public Avalonia.StyledProperty<Avalonia.Controls.Primitives.PopupPositioning.PopupAnchor> PlacementAnchorProperty

PlacementConstraintAdjustmentProperty Field​

Defines the Avalonia.Controls.Primitives.PopupFlyoutBase.PlacementConstraintAdjustment property

public Avalonia.StyledProperty<Avalonia.Controls.Primitives.PopupPositioning.PopupPositionerConstraintAdjustment> PlacementConstraintAdjustmentProperty

PlacementGravityProperty Field​

Defines the Avalonia.Controls.Primitives.Popup.PlacementAnchor property.

public Avalonia.StyledProperty<Avalonia.Controls.Primitives.PopupPositioning.PopupGravity> PlacementGravityProperty

PlacementProperty Field​

Defines the Avalonia.Controls.Primitives.Popup.Placement property.

public Avalonia.StyledProperty<Avalonia.Controls.PlacementMode> PlacementProperty

ShowModeProperty Field​

Defines the Avalonia.Controls.Primitives.PopupFlyoutBase.ShowMode property

public Avalonia.StyledProperty<Avalonia.Controls.FlyoutShowMode> ShowModeProperty

VerticalOffsetProperty Field​

Defines the Avalonia.Controls.Primitives.Popup.VerticalOffset property.

public Avalonia.StyledProperty<double> VerticalOffsetProperty

Events​

NameDescription
ClosedInherited from FlyoutBase.
ClosingNo summary available.
OpenedInherited from FlyoutBase.
OpeningNo summary available.
PropertyChangedRaised when a Avalonia.AvaloniaProperty value changes on this object. Inherited from AvaloniaObject.

Closing Event​

public event EventHandler<System.ComponentModel.CancelEventArgs> Closing

Opening Event​

public event EventHandler Opening