Comments (2)
From [email protected] on November 07, 2009 19:16:46
We need to set e.Handled to prevent propagation of all MouseDown events until we can
determine whether a drag is initiated. Once we determine that no drag was initiated
then we need to pass the click to the control.
from gong-wpf-dragdrop.
From [email protected] on March 02, 2012 22:28:08
This can be fixed by disabling the automatic selection behavior for ListBox (where holding left mouse and dragging changes the selection).
ListBox does not let you disable this out of the box, so it's a bit of a hack:
http://stackoverflow.com/questions/5667998/prevent-wpf-listbox-from-selecting-item-under-mouse-when-layout-changes
from gong-wpf-dragdrop.
Related Issues (20)
- When I drag an element in the listbox, an error occurred HOT 1
- Nested Drag Source + Touch HOT 3
- How do I make the size of the drag effect be 75 percent of the size of the source control
- DragSourceIgnore is not working within an ItemsControl HOT 1
- Try to catch an InvalidOperationException? HOT 2
- [Feature request] Keep selection alive HOT 1
- DropHandler.Drop & DropHandler.DragOver not being called when default style of Window is overridden. HOT 4
- No drop target adorner when dragging over an empty list group HOT 1
- Drag action gets incorrect item object type in ItemsControl collection HOT 2
- Functional Recommendations:ctrl+drag HOT 1
- Nested TabControl adorner visual bug HOT 1
- Drag and Droppable TabControl's child TabControl can drag TabItem that is above the drag location.
- Is it possible for dropped item to replace empty placeholder item in target list, instead of being just inserted
- Dropping multiple objects gives a List<object> instead of List<viewmodel>
- [New Feature] Drop target hints HOT 2
- [New Feature] Change brush for highlight adorner HOT 1
- [New feature] Inherit attached properties
- Highlight/Select dropped (custom way) ListBox item. 🔥
- Drag adorner freezes on screen after middle mouse button is pressed
- Multiselection problem
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gong-wpf-dragdrop.