コード例 #1
0
ファイル: DropToolItem.cs プロジェクト: BadKarmaZen/WireMe
        private void OnDragOver(object sender, DragEventArgs e)
        {
            //	get mouse position
            Point p = WindowsPosition.CorrectGetPosition(this.AssociatedObject);

            _last = p;

            //e.Effects = _effect;
            e.Handled = true;
        }
コード例 #2
0
ファイル: DropBehavior.cs プロジェクト: BadKarmaZen/WireMe
        void AssociatedObject_DragOver(object sender, DragEventArgs e)
        {
            //Debug.WriteLine("+++++" + _dataType.ToString());
            Point p = WindowsPosition.CorrectGetPosition(this.AssociatedObject);

            if (_last.X != p.X || _last.Y != p.Y)
            {
                //Debug.WriteLine("Timer RESET " + DateTime.Now);
                _openTimer.Stop();
                _openTimer.Start();
                _last = p;
            }
            e.Effects = _effect;
            e.Handled = true;
        }