Skip to main content

EditorContextMenu Class

Definition

Assembly:Avalonia.Controls.RichTextEditor
Package:Avalonia.Controls.RichTextEditor

A Avalonia.Controls.MenuFlyout used as the right-click context menu for the editor.

public class EditorContextMenu

Inheritance: object -> AvaloniaObject -> FlyoutBase -> PopupFlyoutBase -> MenuFlyout -> 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

NameDescription
EditorContextMenuNo summary available.

EditorContextMenu Constructor

public EditorContextMenu()

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.
FlyoutPresenterClassesInherited from MenuFlyout.
FlyoutPresenterThemeGets or sets the Avalonia.Styling.ControlTheme that is applied to the container element generated for the flyout presenter. Inherited from MenuFlyout.
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. Inherited from MenuFlyout.
ItemsInherited from MenuFlyout.
ItemsSourceGets or sets the items of the MenuFlyout Inherited from MenuFlyout.
ItemTemplateGets or sets the template used for the items Inherited from MenuFlyout.
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.

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. Inherited from MenuFlyout.
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. Inherited from MenuFlyout.
ItemsSourcePropertyDefines the Avalonia.Controls.MenuFlyout.ItemsSource property Inherited from MenuFlyout.
ItemTemplatePropertyDefines the Avalonia.Controls.MenuFlyout.ItemTemplate property Inherited from MenuFlyout.
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.

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.