Silverlight Toolkit TreeView Drag and Drop - silverlight

Does any know how to implement drag and drop in the silverlight toolkit's treeview?
I saw the drag and drop manager for silverlight but supposedly you can put containers around the items you want to drag and drop but I wonder how I would do this on another treeviewitem exactly?
Maybe there is a better way or custom way? Thanks!

The Silverlight Toolkit October (09) release (http://silverlight.codeplex.com/) has added support for drag and drop.
There is a great walk though of the new feature here: http://themechanicalbride.blogspot.com/2009/08/new-with-silverlight-toolkit-drag-and.html

One method that should work is using Telerik controls.
First download the telerik controls then add a reference to Telerik.Windows.Controls; that will allow you to use the IsDragnDropEnable property for the source treeview and the .AllowDrop for the Targeted TreeView

Related

How do I generate my application using CodeFluent Entities and Telerik Controls?

I've seen a blog on CodeFluent Entities's site about auto-generating a WPF UI using CodeFluent Entities and Syncfusion but I have Telerik WPF controls and wanted to know whether anyone has already done this and can point me in the right direction?
The Syncfusion producer is based on a template, so you can get a copy of the code and replace the Syncfusion controls by the Telerik controls in the template files. For instance you can replace the Syncfusion DataGrid by a Telerik DataGrid in the file EntityView.xaml.tpl.

wpf using a windows form

I have a windows form that handles drag and drop of images just fine.Because I cannot find a way to do this in WPF can I add the form to a page and will the drag and drop still work? The images being dragged are from outside of app.
Thanks, Betsy
You can use a WindowsFormsHost in WPF to host Windows Forms controls. This will meet your requirements. Otherwise, take a look at Drag & Drop in WPF. This is fairly easy to implement.

Drag and Drop/Reorder items in wrap panel?

I have a need to create an interaction in wrap panel to allow drag and drop functionality of items. I generate content in wrap panel dynamically with XMLDataprovider. I was not able to find any similar interaction online. How can this be achieved?
Check out the work done by Martin Grayson. It is an open source project on CodePlex titled Blacklight. There should be both an SL version and WPF version doing what you need to do via the Drag Dock Panel, with source available to get a better understanding on how it is implemented.
To see the sample from above, click WPF then click Drag Dock Panel on the lower left.
EDIT: It appears that default WPF support was stripped in 4.3, however jump back to 4.2 and both the binaries and source have their respective WPF offerings.

Silverlight 4 Drag and Drop Alternatives

I want to add the ability to drag a user control from one part of a Silverlight 4 page onto another user control on the same page (not talking about the new Silverlight 4 ability to drag a file from the OS onto the page).
What approach is most straightforward? What approach offers the most flexibility?
Here are some alternatives I found so far
SO drag-and-drop-control-for-silverlight. Same question but answers apply to SL 2.
Alex van Beek's DragManager. Written for SL3.
Silverlight Drag Drop. Also written for SL3.
I can't compare all of the options you've listed but if I wanted to implement control to control drag drop feature I would the DragDrop and the DragDropTarget classes from the Silveright Toolkit. Its the only DragDrop framework I know of that has been refreshed for SL4 and if you already use elements from the Toolkit then that would be a natural solution.

How to create a "drag target line" in a winforms listbox that shows whether the drop source is being dropped before or after the drop target

I have a user control that is hosting a winforms listbox. I am re-sorting items in the list using drag and drop. I realized that I need a drag "target line" that shows whether I am dropping before or after a target.
Any suggestions. I am open to suggestions. I am not wed to the listbox. I can use another winforms control (the lighter the better) and I am also licensed for winforms telerik controls (a couple of version back). RadListBox does not do the data binding to my biz object correctly so I went with winforms version. But maybe another rad control would give me this out of the box.
For the record, my preference is to stick with the winforms listbox if it can work.
If I need to implement this behaviour myself does anyone have code samples or suggestions on how to do it. I would not have a clue on where to start?
Check out how one person provided a visual cue for where a drop operation will take place in a ListBox:
Drag-and-Drop ListBox
See his VisualCue class.
I think you might be able to just use a ListView for this instead of a ListBox.

Resources