Hi Stoyan,
That expander button visibility issue is now solved.
We are getting two different issues now.
1). While node is selected and selection border is there, node_mouseLeave is getting call but if condition returning false everytime. Due to this my code to hide the button is not getting execute.
code for node_mouseLeave is as follows.
if (sourceNode != null && !sourceNode.ContainsPoint(e.GetPosition(diagram.DocumentPlane)))
{
ExpandButtonVisible(sourceNode, false);
}
Please suggest, if selection rectangle FALSE the ContainsPoint condition. If this is so what could we do to perform mouseLeave when node is selected.
2). We have anchor point in the node to draw link from this anchor point to another node. When mouse enters and we try to make the link by dragging mouse from this node to another node, ExpanderButton remains visible because in case of dragging, MouseLeave event does'nt get call.
Please suggest for this issue too.
Regards,
Anshul