MenuFlyout Class
Definition
public class MenuFlyout
Constructors
| Name | Description |
|---|---|
| MenuFlyout | No summary available. |
MenuFlyout Constructor
public MenuFlyout()
Methods
| Name | Description |
|---|---|
| Hide | Hides the Flyout Inherited from PopupFlyoutBase. |
| ShowAt (2 overloads) | Shows the Flyout at the given Control Inherited from PopupFlyoutBase. |
| GetAttachedFlyout | Inherited from FlyoutBase. |
| SetAttachedFlyout | Inherited from FlyoutBase. |
| ShowAttachedFlyout | Inherited from FlyoutBase. |
| Bind (8 overloads) | Binds a Avalonia.AvaloniaProperty to an Avalonia.Data.BindingBase. Inherited from AvaloniaObject. |
| CheckAccess | Returns 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. |
| CoerceValue | Coerces the specified Avalonia.AvaloniaProperty. Inherited from AvaloniaObject. |
| Equals | Compares two objects using reference equality. Inherited from AvaloniaObject. |
| GetBaseValue | Inherited from AvaloniaObject. |
| GetHashCode | Gets the hash code for the object. Inherited from AvaloniaObject. |
| GetValue (3 overloads) | Gets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject. |
| IsAnimating | Checks whether a Avalonia.AvaloniaProperty is animating. Inherited from AvaloniaObject. |
| IsSet | Checks 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. |
| VerifyAccess | Checks that the current thread is the UI thread and throws if not. Inherited from AvaloniaObject. |
Properties
| Name | Description |
|---|---|
| FlyoutPresenterClasses | No summary available. |
| FlyoutPresenterTheme | Gets or sets the Avalonia.Styling.ControlTheme that is applied to the container element generated for the flyout presenter. |
| ItemContainerTheme | Gets or sets the Avalonia.Styling.ControlTheme that is applied to the container element generated for each item. |
| ItemTemplate | Gets or sets the template used for the items |
| Items | No summary available. |
| ItemsSource | Gets or sets the items of the MenuFlyout |
| CustomPopupPlacementCallback | 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. Inherited from PopupFlyoutBase. |
| HorizontalOffset | Gets or sets the Horizontal offset of the popup in relation to the Avalonia.Controls.Primitives.Popup.PlacementTarget. Inherited from PopupFlyoutBase. |
| OverlayDismissEventPassThrough | Gets or sets a value indicating whether the event that closes the flyout is passed through to the parent window. Inherited from PopupFlyoutBase. |
| OverlayInputPassThroughElement | Gets or sets an element that should receive pointer input events even when underneath the flyout's overlay. Inherited from PopupFlyoutBase. |
| Placement | Gets or sets the desired placement of the popup in relation to the Avalonia.Controls.Primitives.Popup.PlacementTarget. Inherited from PopupFlyoutBase. |
| PlacementAnchor | Gets 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. |
| PlacementConstraintAdjustment | 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. Inherited from PopupFlyoutBase. |
| PlacementGravity | 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. Inherited from PopupFlyoutBase. |
| Popup | Inherited from PopupFlyoutBase. |
| ShowMode | Gets or sets the desired ShowMode Inherited from PopupFlyoutBase. |
| VerticalOffset | Gets or sets the Vertical offset of the popup in relation to the Avalonia.Controls.Primitives.Popup.PlacementTarget. Inherited from PopupFlyoutBase. |
| IsOpen | Gets whether this Flyout is currently Open Inherited from FlyoutBase. |
| Target | Gets the Target used for showing the Flyout Inherited from FlyoutBase. |
| Dispatcher | Returns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject. |
| Item | Inherited from AvaloniaObject. |
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; }
ItemTemplate Property
Gets or sets the template used for the items
public Avalonia.Controls.Templates.IDataTemplate ItemTemplate { 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; }
Fields
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
ItemTemplateProperty Field
Defines the Avalonia.Controls.MenuFlyout.ItemTemplate property
public Avalonia.StyledProperty<Avalonia.Controls.Templates.IDataTemplate> ItemTemplateProperty
ItemsSourceProperty Field
Defines the Avalonia.Controls.MenuFlyout.ItemsSource property
public Avalonia.StyledProperty<System.Collections.IEnumerable> ItemsSourceProperty
Events
| Name | Description |
|---|---|
| Closing | Inherited from PopupFlyoutBase. |
| Opening | Inherited from PopupFlyoutBase. |
| Closed | Inherited from FlyoutBase. |
| Opened | Inherited from FlyoutBase. |
| PropertyChanged | Raised when a Avalonia.AvaloniaProperty value changes on this object. Inherited from AvaloniaObject. |