Beispiel #1
0
        private void AssociatedObject_MouseLeave(object sender, MouseEventArgs e)
        {
            if (!this.IsUseMouseLeave)
            {
                return;
            }

            ElementDragStateBehavior.SetIsDragging(this.AssociatedObject, false);
        }
Beispiel #2
0
        private void AssociatedObject_MouseMove(object sender, MouseEventArgs e)
        {
            if (e.LeftButton == MouseButtonState.Released)
            {
                return;
            }

            ElementDragStateBehavior.SetIsDragging(this.AssociatedObject, true);

            System.Diagnostics.Debug.WriteLine("拖拽中");
        }
Beispiel #3
0
 private void AssociatedObject_MouseUp(object sender, MouseButtonEventArgs e)
 {
     ElementDragStateBehavior.SetIsDragging(this.AssociatedObject, false);
 }