private void RadPacketChart_OnZoomChanged(object sender, ChartZoomChangedEventArgs e) { if (this.radPacketChartTimeAxis == null) { return; } var axis = this.radPacketChartTimeAxis; var range = axis.ActualVisibleRange.Maximum - axis.ActualVisibleRange.Minimum; var t = (int)(range.TotalSeconds / axis.MajorStep); axis.LabelInterval = Math.Max(t / 100, 1); axis.LabelFormat = "HH:mm:ss.ff" + ((range.TotalMilliseconds <= 100 * 100)? "ff" : string.Empty); if (this._gotoFrameFlagZoom) { // radPacketChart.Zoom = e.PreviousZoom; this._gotoFrameFlagZoom = false; } }
private static void Chart_ZoomChanged(object sender, ChartZoomChangedEventArgs e) { UpdateHorizontalRangeValues((RadChartBase)sender); }
private void chart1_ZoomChanged(object sender, ChartZoomChangedEventArgs e) { this.UpdateSlidersMargin(); }