Ejemplo n.º 1
0
 private void ResetLabel(AxisLabelControl label)
 {
     label.Opacity = this.MeasureLabelHelper.Opacity;
     label.Content = (object)null;
     label.SetLabelContentBounds(double.PositiveInfinity, double.PositiveInfinity);
 }
Ejemplo n.º 2
0
 private AxisLabelControl CreateLabel()
 {
     AxisLabelControl axisLabelControl = new AxisLabelControl();
     axisLabelControl.SetBinding(FrameworkElement.StyleProperty, (BindingBase)new Binding("LabelStyle")
     {
         Source = (object)this.Axis
     });
     axisLabelControl.DataContext = (object)axisLabelControl;
     return axisLabelControl;
 }
Ejemplo n.º 3
0
 protected Rect GetChildContentRectangle(AxisLabelControl child, double availableLength)
 {
     return this.GetChildRectangle(child, child.GetLabelContentDesiredSize(), availableLength);
 }
Ejemplo n.º 4
0
 protected Rect GetChildRectangle(AxisLabelControl child, Size desiredSize, double availableLength)
 {
     Size size = new Size(this.ElementWidth(desiredSize), this.ElementHeight(desiredSize));
     return new Rect(this.Presenter.ConvertScaleToAxisUnits(this.GetCenterCoordinate((UIElement)child), availableLength) - size.Width / 2.0, 0.0, size.Width, size.Height);
 }
Ejemplo n.º 5
0
 internal Point MeasureLabelAngleOffset(AxisLabelControl control)
 {
     return this.GetAngleOffsetBySize(control.GetLabelContentDesiredSize(), control.RotationAngle);
 }