Skip to content

SP5: ShowContextMenu still work in PlotActions.NonInteractive() #2475

@minjjKang

Description

@minjjKang

Feature Suggestion

Description: ShowContextMenu is still working in below

// plot == ScottPlot.WPF.WpfPlot
plot.Interaction.Actions = Scottplot.Control.PlotActions.NonInteractive();

// -> MouseRightButtonDown, ShowContextMenu is still working

Code example: I change code like below, and its working correctly.

src/ScottPlot5/ScottPlot5/Control/Interaction.cs

// ~~~
        if (!isDragging && (button == Inputs.ClickContextMenuButton))
        {
            // Control.ShowContextMenu(position); // before
            Actions.ShowContextMenu(Control, position); // After
        }
// ~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions