SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!
Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.
I’m using the YAxisDragModifier to pan one or more Yaxis.
// Add a new YAxisDragModifier for this axis var yAxisDragModifier = new YAxisDragModifier(); yAxisDragModifier.DragMode = AxisDragModes.Pan; yAxisDragModifier.AxisId = axisId; yAxisDragModifier.ReceiveHandledEvents = true; yAxisDragModifier.MouseUp += new System.Windows.Input.MouseButtonEventHandler(yAxisDragModifier_MouseUp); yAxisDragModifier.MouseDown += new System.Windows.Input.MouseButtonEventHandler(yAxisDragModifier_MouseDown); this.ChartModifier.ChildModifiers.Add(yAxisDragModifier);
I like to capture the MouseUp event, but it won’t work.
How can I do this?
Thanks and best regards,
The Modifiers are not in the visual tree. We use some special techniques to route mouse events to them and allow databinding while not held in the visual tree.
May I suggest subclassing YAxisDragModifier and overriding OnModifierMouseDown, OnModifierMouseMove, OnModifierMouseUp. Ensure you call the base method in each override.
There you will see if you set a breakpoint in these override methods that these are hit on mouse interaction. You could add your own event here to notify subscribers that a change has occurred.
Please login first to submit.