示例#1
0
文件: Axis.cs 项目: zyhong/UI-For-UWP
        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);
        }
示例#2
0
文件: Axis.cs 项目: zyhong/UI-For-UWP
 private static void UpdateLabelSizeInfo(AxisLabelModel label, LabelSizeInfo sizeInfo)
 {
     label.transformOffset          = sizeInfo.TransformOffset;
     label.untransformedDesiredSize = sizeInfo.UntransformedSize;
 }