internal override void OnUpdateView(DataPoint dataPoint) { base.OnUpdateView(dataPoint); if (dataPoint.View == null || dataPoint.View.LabelView == null) { return; } AnchorPanel.SetValidContentPositions((UIElement)dataPoint.View.LabelView, ContentPositions.InsideCenter | ContentPositions.InsideBase | ContentPositions.InsideEnd | ContentPositions.OutsideBase | ContentPositions.OutsideEnd); ColumnSeriesLabelPresenter.SetLabelMaxMovingDistance((XYChartArea)this.SeriesPresenter.Series.ChartArea, (UIElement)dataPoint.View.LabelView); }
internal override void OnUpdateView(DataPoint dataPoint) { base.OnUpdateView(dataPoint); if (dataPoint.View == null || dataPoint.View.LabelView == null) { return; } StackedColumnSeriesPresenter columnSeriesPresenter = this.SeriesPresenter as StackedColumnSeriesPresenter; ContentPositions validContentPositions = ContentPositions.InsideCenter; if (columnSeriesPresenter.IsStackTopSeries() && !columnSeriesPresenter.IsHundredPercent()) { validContentPositions |= ContentPositions.OutsideEnd; } AnchorPanel.SetValidContentPositions((UIElement)dataPoint.View.LabelView, validContentPositions); AnchorPanel.SetContentPosition((UIElement)dataPoint.View.LabelView, ContentPositions.InsideCenter); AnchorPanel.SetAnchorMargin((UIElement)dataPoint.View.LabelView, 0.0); ColumnSeriesLabelPresenter.SetLabelMaxMovingDistance((XYChartArea)this.SeriesPresenter.Series.ChartArea, (UIElement)dataPoint.View.LabelView); }