I would like to synchronise the alignment/zooming of a proprietary control displaying a schematic with a SciChartSurface axis range. What events/properties should I be looking at?
My attempt so far involves determining the visible range of the SciChart axis and its limits in pixels. I’ve seen there are events for AxisAlignmentChanged, SizedChanged, VisibleRangeChanged but these do not help if, for example, a legend is made visible to the right of the chart. I’m guessing I need an event for a change in the ModifierSurface size/position.
- Simon Veerapen asked 8 years ago
- You must login to post comments
Hi Yuriy,
the event I failed to look at was SciChartSurface.Rendered. No that I have hooked into this, I can detect a change in the charting area when the legend is displayed.
Thanks for helping with this.
Simon
- Simon Veerapen answered 8 years ago
- You must login to post comments
Hi Simon,
Thanks for your question. May I ask you to clarify your intentions with a couple of screenshots? From what I understood, the SizedChanged event of SciChartSurface should suit your needs perfectly.
If you want to access the main container of SciChartSurface, there is the property called RootGrid which returns an object of type MainGrid. You could try to use it for your purposes.
Please let us know if this helps,
Best regards,
Yuriy
- Yuriy Zadereckiy answered 8 years ago
- You must login to post comments
Please login first to submit.