Ejemplo n.º 1
0
 void PriceHistoryChart_Scroll(object sender, AxisScrollEventArgs e)
 {
     Axis axis = sender as Axis;
     PercentChangeChart.AxesX[0].ScrollBarOffset = axis.ScrollBarOffset;
 }
Ejemplo n.º 2
0
        void AxisX_Scroll(object sender, AxisScrollEventArgs e)
        {
            if (e.ScrollEventArgs.ScrollEventType == ScrollEventType.ThumbTrack
                || e.ScrollEventArgs.ScrollEventType == ScrollEventType.LargeDecrement
                || e.ScrollEventArgs.ScrollEventType == ScrollEventType.LargeIncrement
                || e.ScrollEventArgs.ScrollEventType == ScrollEventType.SmallDecrement
                || e.ScrollEventArgs.ScrollEventType == ScrollEventType.SmallIncrement)
            {
                Axis axisX = sender as Axis;
                //axisX.Height = axisX.ActualHeight;
                foreach (DataSeries ds in Chart.Series)
                {
                    if ((Boolean)ds.Enabled)
                    {
                        if (ds.PlotGroup != null && ds.PlotGroup.AxisY.ViewportRangeEnabled)
                            Chart.Dispatcher.BeginInvoke(new Action<VcProperties, object>(ds.UpdateVisual), new object[] { VcProperties.ViewportRangeEnabled, null });

                        //ds.UpdateVisual(VcProperties.DataPoints, ds.InternalDataPoints);
                    }
                }
            }
        }