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
|
Hello We are using WPF Elements 6.0.2734.23168, but this issue was also present in earlier versions. We are implementing panning functionality in our graph that is initiated and executed by clicking and holding down the right mouse button. The panning is ended by releasing the right mouse button and the data fetching procedure is then executed. The problem is that sometimes the release of the right mouse button is not registered, even if we have added a global event handler for preview right mouse button up.We think that it has to do with the data series. The only time the release is not registered is when the mouse pointer is above a line in the graph, otherwise it works fine. This is a serious problem when the graph area is mostly covered in lines, see attached screen shot. Is there a handler in the data series/lines that somewhow stops the event from bubbling/tunneling correctly? Best regards Nicklas |
|
|
Hello Nicklas I recommend using the ChartMouseRightButtonDown, ChartMouseMove and ChartMouseRightButtonUp events (on the Chart control) to implement your panning function. These events are only registered on the chart plotting area, and the event args include both pixel positions and logical plot positions of where the mouse is. You shouldn't have any trouble with these events not registering. -Jason Fauchelle |
|
|
Hello Jason Unfortunately this does not seem to fix the problem. The right mouse button release sometimes does not trigger an event when the mouse is over a line (data series) in the graph. So the panning operation is not stopped even though the right mouse button has been released. It is really annoying. We hook up to these events programmatically in our ForegroundElement class. |
|
|
Hello Nicklas I have tried many things to reproduce this, but the event always triggers at my end. Could you please send a repro project, or at least your ForegroundElement class so that I can reproduce this and find the problem for you. -Jason Fauchelle |
|
|
Hello Can I send files to you without having to post them on the forum? Best regards Nicklas |
|
|
Certainly, please email them to jason@mindscape.co.nz. -Jason Fauchelle |
|