Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
720
XamContextMenu menu item attached to view model command
posted

Hi

I have a simple XamMonthCalendar control on my usercontrol. I have a corresponding ViewModel for this view. I create the View and the View model using Unity container in another class. I have also attached my view model to the view. Now my problem is I'm unable to attach the menu item to a command object in my view model. Could you please have a look and let me know the solution.

Here is the xaml 

<Grid>
<igEditors:XamMonthCalendar Name="Calendar" >


<ig:ContextMenuService.Manager>
<ig:ContextMenuManager>
<ig:ContextMenuManager.ContextMenu>
<ig:XamContextMenu x:Name="CalendarContextMenu">
<ig:XamMenuItem Header="Font Size"
Command="{Binding Path=FontSizeCommand"/>
</ig:XamContextMenu>
</ig:ContextMenuManager.ContextMenu>
</ig:ContextMenuManager>
</ig:ContextMenuService.Manager>
</igEditors:XamMonthCalendar>
</Grid>

Parents Reply Children
No Data