Skip to main content

Flyout Class

Definition

Assembly:Avalonia.Controls
Package:Avalonia
Source:Flyout.cs
public class Flyout

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

Constructors

NameDescription
FlyoutNo summary available.

Flyout Constructor

public Flyout()

Methods

NameDescription
HideHides the Flyout Inherited from PopupFlyoutBase.
ShowAt (2 overloads)Shows the Flyout at the given Control Inherited from PopupFlyoutBase.
GetAttachedFlyoutInherited from FlyoutBase.
SetAttachedFlyoutInherited from FlyoutBase.
ShowAttachedFlyoutInherited from FlyoutBase.
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.
GetBaseValueInherited from AvaloniaObject.
GetHashCodeGets the hash code for the object. Inherited from AvaloniaObject.
GetValue (3 overloads)Gets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject.
IsAnimatingChecks whether a Avalonia.AvaloniaProperty is animating. Inherited from AvaloniaObject.
IsSetChecks whether a Avalonia.AvaloniaProperty is set on this object. Inherited from AvaloniaObject.
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.
VerifyAccessChecks that the current thread is the UI thread and throws if not. Inherited from AvaloniaObject.

Properties

NameDescription
ContentGets or sets the content to display in this flyout
ContentTemplateGets or sets the data template used to display the content of the flyout.
FlyoutPresenterClassesGets the Classes collection to apply to the FlyoutPresenter this Flyout is hosting
FlyoutPresenterThemeGets or sets the Avalonia.Styling.ControlTheme that is applied to the container element generated for the flyout presenter.
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. Inherited from PopupFlyoutBase.
HorizontalOffsetGets or sets the Horizontal offset of the popup in relation to the Avalonia.Controls.Primitives.Popup.PlacementTarget. Inherited from PopupFlyoutBase.
OverlayDismissEventPassThroughGets or sets a value indicating whether the event that closes the flyout is passed through to the parent window. Inherited from PopupFlyoutBase.
OverlayInputPassThroughElementGets or sets an element that should receive pointer input events even when underneath the flyout's overlay. Inherited from PopupFlyoutBase.
PlacementGets or sets the desired placement of the popup in relation to the Avalonia.Controls.Primitives.Popup.PlacementTarget. Inherited from PopupFlyoutBase.
PlacementAnchorGets or sets the anchor point on the Avalonia.Controls.Primitives.Popup.PlacementRect when Avalonia.Controls.Primitives.Popup.Placement is Avalonia.Controls.PlacementMode.AnchorAndGravity. Inherited from PopupFlyoutBase.
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. Inherited from PopupFlyoutBase.
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. Inherited from PopupFlyoutBase.
PopupInherited from PopupFlyoutBase.
ShowModeGets or sets the desired ShowMode Inherited from PopupFlyoutBase.
VerticalOffsetGets or sets the Vertical offset of the popup in relation to the Avalonia.Controls.Primitives.Popup.PlacementTarget. Inherited from PopupFlyoutBase.
IsOpenGets whether this Flyout is currently Open Inherited from FlyoutBase.
TargetGets the Target used for showing the Flyout Inherited from FlyoutBase.
DispatcherReturns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject.
ItemInherited from AvaloniaObject.

Content Property

Gets or sets the content to display in this flyout

public object Content { get; set; }

ContentTemplate Property

Gets or sets the data template used to display the content of the flyout.

public Avalonia.Controls.Templates.IDataTemplate ContentTemplate { get; set; }

FlyoutPresenterClasses Property

Gets the Classes collection to apply to the FlyoutPresenter this Flyout is hosting

public Avalonia.Controls.Classes FlyoutPresenterClasses { get; set; }

FlyoutPresenterTheme Property

Gets or sets the Avalonia.Styling.ControlTheme that is applied to the container element generated for the flyout presenter.

public Avalonia.Styling.ControlTheme FlyoutPresenterTheme { get; set; }

Fields

NameDescription
ContentPropertyDefines the Avalonia.Controls.Flyout.Content property
ContentTemplatePropertyDefines the Avalonia.Controls.Flyout.ContentTemplate property.
FlyoutPresenterThemePropertyDefines the Avalonia.Controls.Flyout.FlyoutPresenterTheme property.
CustomPopupPlacementCallbackPropertyDefines the Avalonia.Controls.Primitives.Popup.CustomPopupPlacementCallback property. Inherited from PopupFlyoutBase.
HorizontalOffsetPropertyDefines the Avalonia.Controls.Primitives.Popup.HorizontalOffset property. Inherited from PopupFlyoutBase.
OverlayDismissEventPassThroughPropertyDefines the Avalonia.Controls.Primitives.PopupFlyoutBase.OverlayDismissEventPassThrough property Inherited from PopupFlyoutBase.
OverlayInputPassThroughElementPropertyDefines the Avalonia.Controls.Primitives.PopupFlyoutBase.OverlayInputPassThroughElement property Inherited from PopupFlyoutBase.
PlacementAnchorPropertyDefines the Avalonia.Controls.Primitives.Popup.PlacementAnchor property. Inherited from PopupFlyoutBase.
PlacementConstraintAdjustmentPropertyDefines the Avalonia.Controls.Primitives.PopupFlyoutBase.PlacementConstraintAdjustment property Inherited from PopupFlyoutBase.
PlacementGravityPropertyDefines the Avalonia.Controls.Primitives.Popup.PlacementAnchor property. Inherited from PopupFlyoutBase.
PlacementPropertyDefines the Avalonia.Controls.Primitives.Popup.Placement property. Inherited from PopupFlyoutBase.
ShowModePropertyDefines the Avalonia.Controls.Primitives.PopupFlyoutBase.ShowMode property Inherited from PopupFlyoutBase.
VerticalOffsetPropertyDefines the Avalonia.Controls.Primitives.Popup.VerticalOffset property. Inherited from PopupFlyoutBase.
AttachedFlyoutPropertyDefines the AttachedFlyout property Inherited from FlyoutBase.
IsOpenPropertyDefines the Avalonia.Controls.Primitives.FlyoutBase.IsOpen property Inherited from FlyoutBase.
TargetPropertyDefines the Avalonia.Controls.Primitives.FlyoutBase.Target property Inherited from FlyoutBase.

ContentProperty Field

Defines the Avalonia.Controls.Flyout.Content property

public Avalonia.StyledProperty<object> ContentProperty

ContentTemplateProperty Field

Defines the Avalonia.Controls.Flyout.ContentTemplate property.

public Avalonia.StyledProperty<Avalonia.Controls.Templates.IDataTemplate> ContentTemplateProperty

FlyoutPresenterThemeProperty Field

Defines the Avalonia.Controls.Flyout.FlyoutPresenterTheme property.

public Avalonia.StyledProperty<Avalonia.Styling.ControlTheme> FlyoutPresenterThemeProperty

Events

NameDescription
ClosingInherited from PopupFlyoutBase.
OpeningInherited from PopupFlyoutBase.
ClosedInherited from FlyoutBase.
OpenedInherited from FlyoutBase.
PropertyChangedRaised when a Avalonia.AvaloniaProperty value changes on this object. Inherited from AvaloniaObject.