I have a node deriving from GoSubGraph. When the node is expanded, I want the selectionObject to be the node itself, when it is collapsed, I want it to be the CollapsedObject.
I tried the naive:
But in collapsed mode, my object is surrounded with an ever-present blue rectangle. This rectangle does not appear if I allways set SelectionObject to CollapsedObject (but of course, the selection is wrong in expanded mode). If I start in collapsed mode, the rectangle does not appear before I do an expand/collapse.
I tried to replace IsExpanded with variations arround State==Expanding, State==Expanded and combinations thereof, but with no success.
Is there something I missed ?
By the way, when my application is starting, if I do not explicitely call Collapse() or Expand(), the subgraph is in a state that is neither collapsed nor expanded. Is this normal ?