Hi
I want to have a Collapsible container control like mindfusion’s one.I want a node exactly like it , a bar with title(like win form) which is its handle. user can add other nodes on it and when user moves it all its contents move with it. Do you have any built-in node in this regard?
Hi Jake
Thanks. But there are some problems with it:
1.End user can’t drop other nodes inside it
2.Initial width and height: it should have initial size for example 300*200 to let end user drop other nodes inside it
3.user should be able to move items/nodes inside it
4.there should be some space between title bar and contents(add a node to see what is wrong)
OK, Collapsing SubGraphs really want to collapse to the margins when there aren’t any children, so I stole a little bit of LimitedSubGraph from NodeLinkDemo (see the comments in that code). The little resize handles give the user control over the minimum dimensions of an “empty” subgraph, so I think it’s a nice feature. And it gives you an option on (2) above to set the min width/height.
I’ve added Drag-in with OnSelectionDropped.
I haven’t added drag-out. I’m not sure whether you want drag-out or “make the subgraph bigger” to be the default when you drag a node inside a subgraph.
and I’ve fixed 4.
I didn’t change the collapse to just collapse to the title width. After playing with it over the last 2 days, I’ve become pretty attached to the width staying the same, it just “feels” better.
Hi Jake
Thanks,It works great! How I can find out that user has dropped a node on it? and what it is? it handles it itself, But I want to change that node’s ContainerID.