Exemple #1
0
        /// <summary>
        /// 时间线基类
        /// </summary>
        public TimelineBase()
        {
            _tickCollection = new TimelineTickCollection();

            TickCollection.ViewportOffset = 0;
            TickCollection.ViewportExtent = ActualWidth;
        }
Exemple #2
0
        /// <summary>
        /// 时间线基类
        /// </summary>
        public TimelineBase()
        {
            _tickCollection = new TimelineTickCollection();

            TickCollection.ViewportOffset = 0;
            TickCollection.ViewportExtent = ActualWidth;
        }
        public TimelineZoomScrollBar()
            : base()
        {
            ChangeZoom = new DelegateCommand <object>(ChangeZoomExecute);

            tickCollection =
                new TimelineTickCollection
            {
                BigTickMinimumSize    = 50,
                MediumTickMinimumSize = 10
            };

            Unloaded += (ZoomScrollBarUnloaded);
            actualWidthChangedHandler = ActualWidthChanged;
        }
    public TimelineZoomScrollBar()
      : base()
    {
      ChangeZoom = new DelegateCommand<object>(ChangeZoomExecute);

      tickCollection =
        new TimelineTickCollection
        {
          BigTickMinimumSize = 50,
          MediumTickMinimumSize = 10
        };

      Unloaded += (ZoomScrollBarUnloaded);
      actualWidthChangedHandler = ActualWidthChanged;
    }