Skip to main content

MenuFlyout Class

Definition

Assembly:Avalonia.Controls
Package:Avalonia
public class MenuFlyout

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

Derived types:EditorContextMenu

Constructors

NameDescription
MenuFlyoutNo summary available.
public MenuFlyout()

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 Inherited from PopupFlyoutBase.
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 Inherited from PopupFlyoutBase.
ShowAttachedFlyoutInherited from FlyoutBase.
VerifyAccessChecks that the current thread is the UI thread and throws if not. Inherited from AvaloniaObject.

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. Inherited from PopupFlyoutBase.
DispatcherReturns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject.
FlyoutPresenterClassesNo summary available.
FlyoutPresenterThemeGets or sets the Avalonia.Styling.ControlTheme that is applied to the container element generated for the flyout presenter.
HorizontalOffsetGets or sets the Horizontal offset of the popup in relation to the Avalonia.Controls.Primitives.Popup.PlacementTarget. Inherited from PopupFlyoutBase.
IsOpenGets or sets whether this Flyout is currently open. Inherited from FlyoutBase.
ItemInherited from AvaloniaObject.
ItemContainerThemeGets or sets the Avalonia.Styling.ControlTheme that is applied to the container element generated for each item.
ItemsNo summary available.
ItemsSourceGets or sets the items of the MenuFlyout
ItemTemplateGets or sets the template used for the items
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.
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. Inherited from PopupFlyoutBase.

FlyoutPresenterClasses Property

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; }

ItemContainerTheme Property

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

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

Items Property

public Avalonia.Controls.ItemCollection Items { get; set; }

ItemsSource Property

Gets or sets the items of the MenuFlyout

public System.Collections.IEnumerable ItemsSource { get; set; }

ItemTemplate Property

Gets or sets the template used for the items

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

Fields

NameDescription
AttachedFlyoutPropertyDefines the AttachedFlyout property Inherited from FlyoutBase.
CustomPopupPlacementCallbackPropertyDefines the Avalonia.Controls.Primitives.Popup.CustomPopupPlacementCallback property. Inherited from PopupFlyoutBase.
FlyoutPresenterThemePropertyDefines the Avalonia.Controls.MenuFlyout.FlyoutPresenterTheme property.
HorizontalOffsetPropertyDefines the Avalonia.Controls.Primitives.Popup.HorizontalOffset property. Inherited from PopupFlyoutBase.
IsOpenPropertyDefines the Avalonia.Controls.Primitives.FlyoutBase.IsOpen property Inherited from FlyoutBase.
ItemContainerThemePropertyDefines the Avalonia.Controls.MenuFlyout.ItemContainerTheme property.
ItemsSourcePropertyDefines the Avalonia.Controls.MenuFlyout.ItemsSource property
ItemTemplatePropertyDefines the Avalonia.Controls.MenuFlyout.ItemTemplate property
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.
TargetPropertyDefines the Avalonia.Controls.Primitives.FlyoutBase.Target property Inherited from FlyoutBase.
VerticalOffsetPropertyDefines the Avalonia.Controls.Primitives.Popup.VerticalOffset property. Inherited from PopupFlyoutBase.

FlyoutPresenterThemeProperty Field

Defines the Avalonia.Controls.MenuFlyout.FlyoutPresenterTheme property.

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

ItemContainerThemeProperty Field

Defines the Avalonia.Controls.MenuFlyout.ItemContainerTheme property.

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

ItemsSourceProperty Field

Defines the Avalonia.Controls.MenuFlyout.ItemsSource property

public Avalonia.StyledProperty<System.Collections.IEnumerable> ItemsSourceProperty

ItemTemplateProperty Field

Defines the Avalonia.Controls.MenuFlyout.ItemTemplate property

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

Events

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