Ejemplo n.º 1
0
 /// <summary>
 /// Raises the <see cref="E:AxisBoundsChanged" /> event.
 /// </summary>
 /// <param name="args">The <see cref="ChartAxisBoundsEventArgs"/> instance containing the event data.</param>
 protected internal override void OnAxisBoundsChanged(ChartAxisBoundsEventArgs args)
 {
     base.OnAxisBoundsChanged(args);
     if (this.axisPanel != null)
     {
         this.axisPanel.ArrangeElements(new Size(ArrangeRect.Width, ArrangeRect.Height));
     }
 }
Ejemplo n.º 2
0
        private void OnAxisBoundsChanged(object sender, ChartAxisBoundsEventArgs e)
        {
            foreach (Annotation annotation in this.Annotations)
            {
                if (annotation.XAxis == sender || annotation.YAxis == sender)
                {
                    annotation.UpdateAnnotation();
                }
            }

            if (AnnotationResizer != null && (AnnotationResizer.XAxis == sender || AnnotationResizer.YAxis == sender))
            {
                AnnotationResizer.UpdateAnnotation();
                AnnotationResizer.MapActualValueToPixels();
            }
        }