Quantcast
Channel: Northwoods Software - Latest topics
Viewing all articles
Browse latest Browse all 7423

Drag&Drop multiple items (Win Forms -> WPF) problem

$
0
0

@meilens wrote:

Hello,

I already implemented drag & drop from Windows Forms into a hosted GoXAM diagram for a single node.
Now I recognized in my spec, that the node one can drag into the diagram also has to have a self reference link.
Thus I created a data collection and added the node and the link into it.
Then I start the drag & drop Operation which causes a System.ComponentModel.Win32Exception. It's message says: "Clipboard format registration did not succeed", the stack is "at System.Windows.Forms.DataFormats.GetFormat(String format)"

Here's my code:

var dataCollection = this.diagram.Model.CreateDataCollection();
dataCollection.AddNode(node);
dataCollection.AddLink(selfReferenceLink);
this.DoDragDrop(dataCollection, DragDropEffects.Copy);

Any ideas? As stated earlier, passing a single node works, but I have to pass also the link now. Both the node and the link classes are also marked Serializable.

Thanks in advance,
Marc

Posts: 10

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7423

Trending Articles