Comments (2)
I've started working on a new PR for this where I write from scratch, and not directly reusing the code from the example above. However, there were some limitations to time and availability of being able to construct DropInfo at the time.
I will be making some adjustments to the screenshot above though, with DestinationText and datatemplate for how to display this text to the user.
In my PR I am making an interface IDropTargetHint which I might derive from IDropTarget, and implement in the DefaultDropHandler so everything works out of the box assuming the default handler is used, however, I am running into a question about what to pass to that method.
What I am initially wanting my IDropTargetHint.DropHint
to do is:
- Assign the adorner
- Assign DestinationText
- And other potential things
The issue that I am trying to figure out, is I should extend IDropInfo with DropTargetHintAdnorner for the user to assign, and then go from there, or should there be a IDropHintInfo with limited parameters? Using DropInfo gives the flexibility of being able to reuse the DefaultDropHandler.CanAcceptData and reusing other methods and classes (but DragEventArgs won't be available), but it also gives the potential of a lot of properties that are not needed.
What are your recommendations?
from gong-wpf-dragdrop.
Addressed in PR #489
from gong-wpf-dragdrop.
Related Issues (20)
- DropTargetAdorner ZIndex HOT 1
- 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] 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
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.