private void UpdateViewTimeRange(ViewTimeRangeChangeReason reason) { var viewTransformService = IoC.Get <IViewTransformService>(); var headerViewWidth = (double)this.FindResource("HeaderViewWidth"); var startTime = (this.ContentScrollViewer.HorizontalOffset - headerViewWidth) / viewTransformService.Scaling; var duration = this.ContentScrollViewer.ActualWidth / viewTransformService.Scaling; var endTime = startTime + duration; viewTransformService.SetViewTimeRange(startTime, endTime, reason); }
private void OnViewTimeRangeChanged(object sender, ViewTimeRangeChangeReason e) { this.UpdateTimeFrame(); }
private void OnViewTimeRangeChanged(object sender, ViewTimeRangeChangeReason viewTimeRangeChangeReason) { this.UpdateTicks(); }