internal FrameworkElement GetLabelVisual(AxisLabelModel label, int index) { FrameworkElement visual; if (index >= this.labelVisuals.Count) { visual = this.CreateLabelVisual(label); this.labelVisuals.Add(visual); } else { visual = this.labelVisuals[index]; visual.Visibility = Visibility.Visible; } Axis.SetLabelContent(visual, label); this.TransformLabel(label, visual); return(visual); }
private static void UpdateLabelSizeInfo(AxisLabelModel label, LabelSizeInfo sizeInfo) { label.transformOffset = sizeInfo.TransformOffset; label.untransformedDesiredSize = sizeInfo.UntransformedSize; }