From 100346d0fb8b012ec36e4a6d810f9b850369cbd5 Mon Sep 17 00:00:00 2001 From: Janus Weil Date: Sun, 1 Jan 2023 15:37:06 +0100 Subject: [PATCH] try to fix an exception on Mac * InvalidOperationException: This PlotModel is already in use by some other PlotView control * on Mac we introduce the method PlotViewRenderer.DetachModelFromView (analogous to Android) --- .../PlotViewRenderer.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Source/OxyPlot.Xamarin.Forms.Platform.MacOS/PlotViewRenderer.cs b/Source/OxyPlot.Xamarin.Forms.Platform.MacOS/PlotViewRenderer.cs index b4f26e9..3256cf4 100644 --- a/Source/OxyPlot.Xamarin.Forms.Platform.MacOS/PlotViewRenderer.cs +++ b/Source/OxyPlot.Xamarin.Forms.Platform.MacOS/PlotViewRenderer.cs @@ -52,6 +52,8 @@ protected override void OnElementChanged(ElementChangedEventArgs