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)?
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)?
SIGN IN To post a reply.
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
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.
SIGN IN To post a reply.
- 5 Replies
- 3 Participants
-
AR Artemy
- Nov 18, 2016 11:17 AM UTC
- Nov 29, 2016 06:04 AM UTC