Ejemplo n.º 1
0
 private void AddToolTip(DataPoint dataPoint)
 {
     foreach (DependencyObject dependencyObject in this.GetDataPointViews(dataPoint))
     {
         SeriesTooltipPresenter.AddToolTip(dependencyObject);
     }
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
0
 private void ResetViewElement(FrameworkElement element)
 {
     SeriesTooltipPresenter.ClearToolTip((DependencyObject)element);
     element.DataContext = (object)null;
 }