I also tried to update to the latest version 17.4.0.47
but here the DiagramEvents tag is gone and there is no
information about it on the release notes: |
The reported issue is a known issue and we have already fixed this issue. Please apply the Custom Nuget package in your application to resolve the issue.
However, the fix will be included in our weekly nuget package release on 11th February, 2020.
|
I also noticed that when i'm adding multiple UserHandles only one icon is shown,
but i've expected to get an "icon bar" to choose from different options.
|
I have modified the sample to use multiple user handle different position for selected node. We suggest you to use DiagramUserHandle’s “Side” and “Offset” property to customize the position of the userhandles. Please refer to the below code example and sample.
Code example:
DiagramUserHandle cloneHandle = new DiagramUserHandle()
{
Name = "clone",
PathData = "M60.3,18H27.5c-3,0-5.5,2.4-5.5,5.5v38.2h5.5V23.5h32.7V18z M68.5,28.9h-30c-3,0-5.5,2.4-5.5,5.5v38.2c0,3,2.4,5.5,5.5,5.5h30c3,0,5.5-2.4,5.5-5.5V34.4C73.9,31.4,71.5,28.9,68.5,28.9z M68.5,72.5h-30V34.4h30V72.5z",
Visible = true,
//Set offset to positioning the user handles
Offset = 1,
//To align right side of the user handle
Side = Side.Left,
Margin = new DiagramUserHandleMargin() { Top = 0, Bottom = 0, Left = 0, Right = 0 },
};
DiagramUserHandle deleteHandle = new DiagramUserHandle()
{
Name = "delete",
PathData = "M 7.04 22.13 L 92.95 22.13 L 92.95 88.8 C 92.95 91.92 91.55 94.58 88.76 96.74 C 85.97 98.91 82.55 100 78.52 100 L 21.48 100 C 17.45 100 14.03 98.91 11.24 96.74 C 8.45 94.58 7.04 91.92 7.04 88.8 z M 32.22 0 L 67.78 0 L 75.17 5.47 L 100 5.47 L 100 16.67 L 0 16.67 L 0 5.47 L 24.83 5.47 z",
Visible = true,
//Set offset to positioning the user handles
Offset = 1,
//To align right side of the user handle
Side = Side.Right,
Margin = new DiagramUserHandleMargin() { Top = 0, Bottom = 0, Left = 0, Right = 0 }
};
|