Pre loader

Feedback from Legend

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

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

Version
8.5.0.28148
  • Lex
    • Lex
    • 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 to post comments
0
0

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

  • You must to post comments
0
0

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?

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.