private void OnDragOver(object sender, DragEventArgs e) { // get mouse position Point p = WindowsPosition.CorrectGetPosition(this.AssociatedObject); _last = p; //e.Effects = _effect; e.Handled = true; }
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; }