Palette Drag and Drop to Diagram


#1

Hi There,

I’m currently evaluating GoXam with WPF and I’m having a hard time implementing the Drag and Drop function.

I have the code here in this repository I checked the demo examples and still no luck.

Thanks,
Josh G


#2

You just need to make sure the target Diagram has AllowDrop=“True”, but you have done that.

Do you see the expected initial contents for both your Palette and your Diagram?


#3

Hi Walter,

Yeah both the palette and diagram have nodes visible when i run the project


#4

That’s very odd – I don’t know why drag-and-drop from your Palette to your Diagram isn’t working. Oh, did you make the model Modifiable? http://www.goxam.com/2.2/helpWPF/Northwoods.GoWPF~Northwoods.GoXam.Model.IDiagramModel~Modifiable.html

If there are several nodes in the Diagram, can the user move one of them? And when the user starts dragging an item from the Palette, does the cursor change to “can’t drop here” within the Palette?


#5

Hi Walter,

That fixed it! Such a small thing I overlooked. I really appreciate your help :)

Thanks!