Ejemplo n.º 1
0
        protected override void OnMouseMove(MouseEventArgs e)
        {
            base.OnMouseMove(e);
            if (!this.isLeftButtonDown || !this.IsSelected)
            {
                return;
            }
            Point position = e.MouseDevice.GetPosition((IInputElement)null);

            if (position == this.previousAbsoluteMousePosition)
            {
                return;
            }
            this.previousAbsoluteMousePosition = position;
            if (!this.haveMoved)
            {
                this.haveMoved = true;
                ValueEditorUtils.ExecuteCommand((ICommand)this.GetValue(TimelineSlider.SlideBeginCommandProperty), (IInputElement)this, (object)null);
                this.autoScrollTimer       = TimelineView.CreateAutoScrollTimer();
                this.autoScrollTimer.Tick += new EventHandler(this.AutoScrollTimer_Tick);
                this.autoScrollTimer.Start();
            }
            this.Value = this.ComputeValueFromPosition(e.MouseDevice.GetPosition(this.GetReferenceElement()));
            ValueEditorUtils.ExecuteCommand((ICommand)this.GetValue(TimelineSlider.SlideCommandProperty), (IInputElement)this, (object)null);
            this.BringIntoView(this.viewRect);
        }