Hi,
I handle the diagram_NodeDoubleClicked event in order to start a configuration dialog.
I have two different TableNode-derived Nodes. The first one should not be movable. I implemented the following properties:
Scrollable = false;
ConnectionStyle = TableConnectionStyle.Rows;
IgnoreLayout = true;
TextAlignment = TextAlignment.Center;
TextVerticalAlignment = AlignmentY.Center;
CellFrameStyle = CellFrameStyle.None;
EnabledHandles = AdjustmentHandles.None;
The second one is movable but only in vertical direction. It has the same properties except the last one which I exchanged by:
EnabledHandles = AdjustmentHandles.Move;
Constraints.MoveDirection = DirectionConstraint.Vertical;
I can doubleclick the first, nonmovable Node at every position and the diagram_NodeDoubleClicked is raised. The second, movable Node I can only doubleclick at its Caption. When I doubleclick it somewhere else, e.g. at a position of a normal cell, the diagram_NodeDoubleClicked is not raised.
I'm afraid this behaviour could confuse the user.
Is it possible to have the diagram_NodeDoubleClicked raised wherever I doubleclick the Node?
Regards,
Pontius