public void SynchronizeWithMainChartPane() { if (mainChartPane == null) { return; } // SystemMonitor.CheckThrow(_masterPaneSynchronizationMode == MainChartPaneSynchronizationModeEnum.XAxis, "Mode not supported."); GraphicsWrapper.SynchronizeDrawingSpaceXAxis(mainChartPane.GraphicsWrapper); RectangleF screen = GraphicsWrapper.ActualSpaceToDrawingSpace(ActualDrawingSpaceArea); if (screen.X < 0) { screen.X = 0; } FitHorizontalAreaToScreen(screen); UpdateMainChartSynchronizationState(true); this.Refresh(); //this.Invalidate(); }