Hi David,
Quote:For some, I do not need a "top level menu", so I created the category with no name (an empty string). Let me know if you think this will cause problems.
A single pane of the Palette is implemented using the ItemListView control (with a header added separately), so you could instantiate that one directly.
Quote:I'd like to add TableNodes to the palette instead of shape nodes, and I'd like to add a custom icon as well (instead of node.Shape = Shape.FromId" in the sample project.) Can you provide an example of how to do this?
You could set ShapeNode.Image + Transparent = true to display a node inside Palette as an icon, and then from NodeCreated handler clear the Image and Transparent value. Loading a bitmap is shown in SpanningCells example / LoadImage method.
For TableNode, there's no Transparent property, but you could set Brush and Pen objects to ones of Transparent color and reset from NodeCreated handler. Alternatively keep using ShapeNodes as icons but replace the instance altogether with TableNode from NodeCreated handler.
See attached test project showing how you could implement drag and drop from custom UI if you prefer that approach. It shows some exceptions in console from built-in OnDrop not finding expected data, we'll fix that with small update later this week.
Quote:Can this be changed so that a user can grab any part of the icon or name to drag the node?
Not at this time, we'll implement that in same update and publish to nuget in a few days.
Regards,
Slavcho
Mindfusion