Hi,
Mandy wrote on Jun 11
th, 2020 at 11:00am:
I would like to disable node's RadialMenu and popup custom page when double click or long press.
Unfortunately, it's not possible to disable the default context menu, we'll add this possibility in a following release. You could try modifying the existing menu items so they're transparent.
Mandy wrote on Jun 11
th, 2020 at 11:00am:
Is there possible to handle node double click / long pressed event ?
There're no double click or long press events currently, we can try and implement them for a following release. As a workaround, you can use the RadialMenuCreated event to track long press events on nodes (it will fire for right clicks in desktop environments too though). Or you can track subsequent NodeClick events and measure the time it takes in between with a timer to detect double-clicks that way.
Mandy wrote on Jun 11
th, 2020 at 11:00am:
On IconDiagram :
a)How can i to set the IconNode's font size?
b)Is there possible to drag and move when i tapped on the text?
To set the IconNode's font size, pass a Font instance with the desired size to the DrawString method in your DrawLocal override. To move the node from the label, you can use EasyMove or InvisibleMove HandlesStyle, but you'll need to make sure the text is within the node's bounds.
Mandy wrote on Jun 11
th, 2020 at 11:00am:
On EntitiesDiagram :
diagram.NodeClicked += (async (sender,e) => {
await App.Current.MainPage.DisplayAlert(null, "NodeClicked", "OK");
});
diagram.NodeSelected += (async (sender, e) => {
await App.Current.MainPage.DisplayAlert(null, "NodeSelected", "OK");
});
When i clicked the void icon, it will show 'NodeClicked' and 'NodeSelected' at the same time. I would like to click the void icon then popup 'NodeClick',click other position on the node will popup 'NodeSelected'.
You can check the e.Node object in the NodeClicked event if it's a TableNode (the whole node) or a ShapeNode (void icon). NodeSelected will be raise only if the node was previously not selected, so I'm not sure if that would be the correct place to detect clicks. You can use the NodeClicked event for both your cases.
Regards,
Lyubo
MindFusion