How can I get the chart area width in pixel to calculate pixel per unit eg. pixel/mm?
- Roland D asked 4 years ago
- You must login to post comments
Hi Roland,
Any WPF control has the property ActualWidth and ActualHeight to report its width, height.
For the SciChartSurface, you can access the inner chart surface’s size using some code like this:
((ChartModiiferSurface)SciChartSurface.ModifierSurface).ActualWidth
For WPF you can convert between size on screen and pixels using a method like this
https://stackoverflow.com/questions/10231627/convert-pixels-to-cm-in-wpf
Best regards,
Andrew
- Andrew Burnett-Thompson answered 4 years ago
- You must login to post comments
Please login first to submit.