EditorContextMenu Class
Definition
A Avalonia.Controls.MenuFlyout used as the right-click context menu for the editor.
public class EditorContextMenu
Remarks
When opened, the flyout computes the active Avalonia.Controls.Documents.Primitives.Adorners.ToolbarTargetAreas from the current block context and propagates them to each Avalonia.Controls.Documents.Primitives.Toolbar.EditorMenuItem so that items with non-matching Avalonia.Controls.Documents.Primitives.Toolbar.EditorMenuItem.TargetAreas are hidden automatically. Consecutive or trailing Avalonia.Controls.Separator items left by hidden groups are collapsed as well.
Constructors
| Name | Description |
|---|---|
| EditorContextMenu | No summary available. |
EditorContextMenu Constructor
public EditorContextMenu()
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 | Inherited from MenuFlyout. |
| FlyoutPresenterTheme | Gets or sets the Avalonia.Styling.ControlTheme that is applied to the container element generated for the flyout presenter. Inherited from MenuFlyout. |
| ItemContainerTheme | Gets or sets the Avalonia.Styling.ControlTheme that is applied to the container element generated for each item. Inherited from MenuFlyout. |
| ItemTemplate | Gets or sets the template used for the items Inherited from MenuFlyout. |
| Items | Inherited from MenuFlyout. |
| ItemsSource | Gets or sets the items of the MenuFlyout Inherited from 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 or sets 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. |
Fields
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. |