SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
I purposely gave SciChart a bad axis ID with: fastLineRenderableSeries.YAxisId = “asdf”;
When I run my application within Visual Studio, Visual Studio throws this exception:
A first chance exception of type ‘System.InvalidOperationException’ occurred in Abt.Controls.SciChart.Wpf.dll. AxisCollection.GetAxisById(‘asdf’) returned no axis with ID=asdf. Please check you have added an axis with this Id to the AxisCollection
But when I run my compiled exe I don’t even get an unhandled exception error. SciChart simply doesn’t draw the chart. I want to catch this exception but my attempts to set up a try/catch have failed.
Is there a way for me to catch this sort of exception so I can log it?