SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
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?
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
Please login first to submit.