Hi,
I’m using both modifier for our SciChartSurface’s. RubberBandXyZoomModifierexecutes on ExecuteOn=”MouseLeftButton” and ZoomPanModifierand executes on ExecuteOn=”MouseRightButton” . For touch I want the opposite behavior. Is that possible?
- Daniel Hartl asked 3 years ago
- You must login to post comments
Hi Daniel
I guess you may have to hook into the preview touch events and switch the IsEnabled and ExecuteOn behaviours of the RubberBandXyZoomModifier / ZoomPanModifier. That or create a custom modifier which inherits one of the above to do it.
There are various methods in ChartModifierBase you can override, including OnModifierMouseDown, OnModifierTouchDown, however you’ll have to test to see which method works best. Maybe custom handling of touch preview events will be better.
Best regards,
Andrew
- Andrew Burnett-Thompson answered 3 years ago
- You must login to post comments
Please login first to submit.