Export without Invalidating plot

Skokan il y a 3 ans dans Documentation 0

I want to Export a plot to png. The plot has dark background. I change the background for the export to white, but I do not want to show that change. Unfortunately during the export the plot is invalidated automatically and so the plot flashes white for a moment. Is there a way, how to change the background colour for the plot, but not the view itself?

I am developing WPF application and using the Oxyplot.Wpf library.