private void AssociatedObject_MouseLeave(object sender, MouseEventArgs e) { if (!this.IsUseMouseLeave) { return; } ElementDragStateBehavior.SetIsDragging(this.AssociatedObject, false); }
private void AssociatedObject_MouseMove(object sender, MouseEventArgs e) { if (e.LeftButton == MouseButtonState.Released) { return; } ElementDragStateBehavior.SetIsDragging(this.AssociatedObject, true); System.Diagnostics.Debug.WriteLine("拖拽中"); }
private void AssociatedObject_MouseUp(object sender, MouseButtonEventArgs e) { ElementDragStateBehavior.SetIsDragging(this.AssociatedObject, false); }