I need the length of the plot area in pixels. I don’t have access to SciChartSurface and it’s XAxis field. I have only ObservableCollection and my NumericAxisViewModel. Is it possible to get the length from them? Or what is the best way to get it in my case?
- You must login to post comments
The best way to do this would be to create some sort of attached behaviour which listened to the SizeChanged event on the SciChartSurface and injected the SciChartSurface.RenderSurface.ActualWidth into the ViewModel.
There’s an example of something similar here: https://stackoverflow.com/a/1083733/303612
Best regards,
Andrew
- Andrew Burnett-Thompson answered 6 years ago
-
Thank you very much. It works!
- You must login to post comments
Please login first to submit.