예제 #1
0
        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);
        }
예제 #2
0
 private void OnViewTimeRangeChanged(object sender, ViewTimeRangeChangeReason e)
 {
     this.UpdateTimeFrame();
 }
예제 #3
0
 private void OnViewTimeRangeChanged(object sender, ViewTimeRangeChangeReason viewTimeRangeChangeReason)
 {
     this.UpdateTicks();
 }