Hello all.
I've created handler for MouseUp (tried MouseClick too) event for Chart and show my custom context menu.
But I would like to show other context menu when I click on LegendBox.
I've created handler for ViewXY.LegendBox.MouseUp (tried MouseClick too) but:
in the first step I'm in handler for LegendBox
..and after that I'm in handler for Chart too
How can I raise event for Only Legend or to Cancel event to Chart (from Legend's handler).
Thank you in advance.
Right click on Legend
Moderator: Queue Moderators
Re: Right click on Legend
You could set e.Handled = true in legend box's MouseUp event handler. This will prevent the event from being sent any further.
I would use chart's ContextMenu property instead. I.e. set chart's context menu directly to ContextMeny property and handle legend box's context menu with MouseUp event.
I hope this helps.
I would use chart's ContextMenu property instead. I.e. set chart's context menu directly to ContextMeny property and handle legend box's context menu with MouseUp event.
I hope this helps.
Re: Right click on Legend
Thank you I think it will help me.ArctionJari wrote:You could set e.Handled = true in legend box's MouseUp event handler. This will prevent the event from being sent any further.
I would use chart's ContextMenu property instead. I.e. set chart's context menu directly to ContextMeny property and handle legend box's context menu with MouseUp event.
I hope this helps.