Hello.
I want to save some lines’ parameters from RenderableSeries items collection. As example, if I have legend for chart I have IsVisible checkbox for each line on it. What the best way to get ‘feedback’ from legend in case if I unclicked several checkboxes? How to catch this event? I need it because after catch this event I want to save current line state and after restart application will have a possibility to restore RenderableSeries state.
P.S. I want to make it under MVVM pattern
- Fedor Iudin asked 2 months ago
-
Hello Fedor, Thanks for your question. Please accept my apologies for the late response. I’m going to discuss your questions with our team and will get back to you as soon as I have an update. Kind regards, Lex, SciChart Technical Support Engineer
- You must login to post comments
Hello Fedor,
Please accept my apologies for the late response.
We discussed your inquiry.
You can use the IsVisibleChanged event. Please take a look:
https://www.scichart.com/documentation/win/current/webframe.html#SciChart.Charting~SciChart.Charting.Visuals.RenderableSeries.BaseRenderableSeries~IsVisibleChanged_EV.html
You will receive a RenderableSeries instance inside the event handler and will be able to check the IsVisible property for this Series.
Hope this helps.
Kind regards,
Lex
- Lex answered 2 months ago
- You must login to post comments
Thank you.
Yes it is OK for IsVisible property. But what if I want to save another line properties like StrokeThickness or color of line? Like in example https://support.scichart.com/support/solutions/articles/101000520215-custom-legend-with-color-picker-and-custom-point-markers. Yes I can used another event not bound with SciChart like application close event: when application closed I save all properties from RenderableSeries. But what if I want to save it right at the moment of change?
- Fedor Iudin answered 2 months ago
- You must login to post comments
Please login first to submit.