private static void LineSeriesChanged(DependencyObject source, DependencyPropertyChangedEventArgs e) { ViewOxyPlotChart control = null; try { control = source as ViewOxyPlotChart; control.ConstructPlot(); } catch (Exception ex) { DllEntryPoint.LogMessage(Xvue.MSOT.Services.Log.EnumLogType.Warning, "Exception", $"{control.Name}: Exception updating line series: '{ex.Message}'."); } }
private static void OxyPlotViewAxesChanged(DependencyObject source, DependencyPropertyChangedEventArgs e) { ViewOxyPlotChart control = null; try { if (e.NewValue != null && e.NewValue != e.OldValue) { control = source as ViewOxyPlotChart; control.OxyPlotView.Axes.Clear(); control.ConstructPlot(); } } catch (Exception ex) { DllEntryPoint.LogMessage(Xvue.MSOT.Services.Log.EnumLogType.Warning, "Exception", $"{control.Name}: Exception updating axes: '{ex.Message}'."); } }