We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

No command binding for DiagramMenuItem - what is a MVVM-workaround?

Hello.

Needed to set node's context menu with menu items for some custom parameterized by the node itself. Using binding this task easily solves via specifying the parameter as menu's PlacementTarget. But DiagramMenuItem's Command and CommandParameter does not support binding (unlike the standard MenuItem's ones). So what is a best way to solve the problem and not violate the MVVM pattern (commands are, as usual, defined in the VM)?

5 Replies

KR Keerthivasan Ramamoorthy Syncfusion Team November 22, 2016 10:48 AM UTC

Hi Artemy,   
  
Requirement: “DiagramMenuItem's Command and CommandParameter Binding support”.  
  
We don’t have a support to achieve your requirement. We will implement and include the requested feature in our Volume 1, 2017 release which is tentatively scheduled to be rolled out by the first week of February,2017.  
  
Regards,   
Keerthivasan R. 
 



AR Artemy November 25, 2016 09:05 AM UTC

Thanks for the reply. It's nice that the feature planned to be added. However for now I figured out that can use classic ContextMenu via ContextMenu property, iherited from FrameworkElement.


SS Suresh Shanmugam Syncfusion Team November 28, 2016 12:55 PM UTC

Hi Artemy, 
Thanks for the update. 
 
Could you please let us know whether you have used classic (Diagram Control) context menu or Framework context menu. This helps us to serve you better. 
 
 
Regards, 
Suresh Shanmugam 
 



AR Artemy replied to Suresh Shanmugam November 28, 2016 02:08 PM UTC

Hi Artemy, 
Thanks for the update. 
 
Could you please let us know whether you have used classic (Diagram Control) context menu or Framework context menu. This helps us to serve you better. 
 
 
Regards, 
Suresh Shanmugam 
 


Hello, Suresh Shanmugam.

I use standard FrameWorkElement's  ContextMenu. Have no issues with it for now.


KR Keerthivasan Ramamoorthy Syncfusion Team November 29, 2016 06:04 AM UTC

Hi Artemy, 
Thanks for the update. 
We are glad that you have fixed your issue. Please let us know if you need any other assistance.  
  
Regards,  
Keerthivasan R.  


Loader.
Live Chat Icon For mobile
Up arrow icon