internal override void OnRemoveView(DataPoint dataPoint) { if (dataPoint.View == null || dataPoint.View.MarkerView == null) { return; } this.PointMarkerElementPool.Release(dataPoint.View.MarkerView); SeriesTooltipPresenter.ClearToolTip((DependencyObject)dataPoint.View.MarkerView); dataPoint.View.MarkerView = (FrameworkElement)null; if (this.SeriesPresenter.ChartArea == null) { return; } this.SeriesPresenter.ChartArea.UpdateSession.ExecuteOnceAfterUpdating((Action)(() => this.PointMarkerElementPool.AdjustPoolSize()), (object)new Tuple <Series, string>(this.SeriesPresenter.Series, "__AdjustDataPointElementPoolSize__"), (string)null); }
private void ClearToolTip(DataPoint dataPoint) { if (dataPoint.View == null) { return; } if (dataPoint.View.MainView != null) { SeriesTooltipPresenter.ClearToolTip((DependencyObject)dataPoint.View.MainView); } if (dataPoint.View.MarkerView == null) { return; } SeriesTooltipPresenter.ClearToolTip((DependencyObject)dataPoint.View.MarkerView); }
private void ResetViewElement(FrameworkElement element) { SeriesTooltipPresenter.ClearToolTip((DependencyObject)element); element.DataContext = (object)null; }