This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, I'm using Chart at this moment and I've got some LineSeries on the chart. Now I'm trying to respond to a user right click on one of the line series and expect a context menu pops up upon that. However, even after I set the ContextMenu property of the LineSeries, nothing is showing up. I wonder if there's anything I need to do to achieve this? Thanks, Sean |
|
|
Hi Sean, Try setting the ContextMenu property of the line, rather than the series. This can be done by creating a custom line style, using a setter to set the ContextMenu, and then setting the style on the series.
Set the LineStyle property on a LineSeries:
I hope that helps. -Jason Fauchelle |
|
|
Hi Jason, Thank you for the reply. I tried the proposed solution and it worked. It was able to show the context menu. However, it conflicts with some of my other customization to the curve. I found another solution which so far behaves as what I wanted. I'm currently using the chart's context menu. It will popup when I right click on a curve as well. I can check which curve is selected and control what I want to show in the context menu. I will try using this solution for now. If it doesn't work out, I will have to modify my customization to accommodate the solution you provided. Thanks, Sean |
|
|
Hi Sean, Great to hear you've got something working. -Jason Fauchelle |
|