Hi Miha,
Yes we are able to reproduce this issue in your sample. Here is the modified event handler. Setting coxtextmenu.IsOpen =true will display the custom context menu.
Modified code:
void nd_MouseRightButtonUp(object sender, MouseButtonEventArgs e)
{
ContextMenu menu = new ContextMenu();
//Action 1
MenuItem m = new MenuItem();
m.Header = "Option1";
// m.Click += new RoutedEventHandler(m1_Click);
menu.Items.Add(m);
//Action 2
MenuItem m2 = new MenuItem();
m2.Header = "Create node in Diagram 2";
// m2.Click += new RoutedEventHandler(m_Click);
menu.Items.Add(m2);
(sender as Node).ContextMenu = menu;
(sender as Node).ContextMenu.IsOpen = true;
}
However this will cause a slight delay in opening the custom menu. This has been fixed in our latest release of Essential Diagram (Essential Studio Volume 3 RC 7.3.0.18). We suggest you to install the latest build and the context menu will get displayed appropriately.
Please refer to the following forum for download details.
http://www.syncfusion.com/support/forums/general/86322/essential-studio-2009-vol3-rc-v73018-available-for-downloadIn this release , support for Alignment commands, Spacing and Sizing commands, SymbolPalette customization properties also have been provided.
We have noticed you've submitted a number of specific technical inquiries here in the Forums which seem to indicate you are a current customer rather than an evaluator or tester. If so, you might like to know that you have an existing personal Direct-Trac account available using your own email address, and we highly recommend using your personal account. You'll get a faster response along with an automatic update when your question is answered via DirectTrac, and you can login and view your incident history 24x7. Simply visit https://www.syncfusion.com/Support/DirectTrac/logon.aspx?URL=/Support/DirectTrac/default.aspx to
login. If you have any further questions, we hope you will take advantage of your existing account and available services as a license holder.
Please let us know if you have any concerns.
Regards,
Nikhil