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