diff --git a/src/Avalonia.Controls/ContextMenu.cs b/src/Avalonia.Controls/ContextMenu.cs index 923982e723..2a87e54618 100644 --- a/src/Avalonia.Controls/ContextMenu.cs +++ b/src/Avalonia.Controls/ContextMenu.cs @@ -114,57 +114,42 @@ namespace Avalonia.Controls AutomationProperties.ControlTypeOverrideProperty.OverrideDefaultValue(AutomationControlType.Menu); } - /// - /// Gets or sets the Horizontal offset of the context menu in relation to the . - /// + /// public double HorizontalOffset { get => GetValue(HorizontalOffsetProperty); set => SetValue(HorizontalOffsetProperty, value); } - /// - /// Gets or sets the Vertical offset of the context menu in relation to the . - /// + /// public double VerticalOffset { get => GetValue(VerticalOffsetProperty); set => SetValue(VerticalOffsetProperty, value); } - /// - /// Gets or sets the anchor point on the when - /// is . - /// + /// public PopupAnchor PlacementAnchor { get => GetValue(PlacementAnchorProperty); set => SetValue(PlacementAnchorProperty, value); } - /// - /// Gets or sets a value describing how the context menu position will be adjusted if the - /// unadjusted position would result in the context menu being partly constrained. - /// + /// public PopupPositionerConstraintAdjustment PlacementConstraintAdjustment { get => GetValue(PlacementConstraintAdjustmentProperty); set => SetValue(PlacementConstraintAdjustmentProperty, value); } - /// - /// Gets or sets a value which defines in what direction the context menu should open - /// when is . - /// + /// public PopupGravity PlacementGravity { get => GetValue(PlacementGravityProperty); set => SetValue(PlacementGravityProperty, value); } - /// - /// Gets or sets the desired placement of the context menu in relation to the. - /// + /// public PlacementMode Placement { get => GetValue(PlacementProperty); @@ -177,26 +162,14 @@ namespace Avalonia.Controls set => SetValue(WindowManagerAddShadowHintProperty, value); } - /// - /// Gets or sets the the anchor rectangle within the parent that the context menu will be placed - /// relative to when is . - /// - /// - /// The placement rect defines a rectangle relative to around - /// which the popup will be opened, with determining which edge - /// of the placement target is used. - /// - /// If unset, the anchor rectangle will be the bounds of the . - /// + /// public Rect? PlacementRect { get => GetValue(PlacementRectProperty); set => SetValue(PlacementRectProperty, value); } - /// - /// Gets or sets the control that is used to determine the popup's position. - /// + /// public Control? PlacementTarget { get => GetValue(PlacementTargetProperty);