oxyplot-avalonia
oxyplot-avalonia copied to clipboard
NullReferenceException when rendering annotations
Cross post from https://github.com/oxyplot/oxyplot/issues/1904
Appears to be an issue specifically with OxyPlot.Avalonia. @VisualMelon suggests two changes:
- Calling
InvalidatePlotoff-thread should set a dirty-flag immediately, and schedule an update on the UI thread (not just crash) -
UpdateVisualsshould check the dirty-flag and perform an update if necessary before rendering