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

            ElementDragStateBehavior.SetIsDragging(this.AssociatedObject, false);
        }
コード例 #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("拖拽中");
        }
コード例 #3
0
 private void AssociatedObject_MouseUp(object sender, MouseButtonEventArgs e)
 {
     ElementDragStateBehavior.SetIsDragging(this.AssociatedObject, false);
 }