- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey everyone,
I have recently added a drag and drop system into my application and I'm looking to immediately add some parameters to the element I'm dropping into the model. However, I can't find a solid and straight forward way to do this.
Here is the code I have right now (where chair.File is a string path to the file itself):
List<String> data = new List<String>();
data.Add(chair.File);
UIApplication.DoDragDrop(data);What I need to do I add a parameter (like an ID) so that when I connect it to my database I'm able to easily communicate back and forth for other data. Any thoughts on the best way to do this? One of my biggest issues right now is actually getting the object I've just dropped in to save the element or element ID in a variable within my code! So that would be my most pressing question.
Thanks!
Solved! Go to Solution.