I am trying to add a context menu to my XamGrid, but adding the following code:
<ig:ContextMenuService.Manager> <ig:ContextMenuManager ModifierKeys="None"> <ig:ContextMenuManager.ContextMenu> <ig:XamContextMenu> <ig:XamMenuItem Header="Item 1" /> <ig:XamMenuItem Header="Item 2" /> <ig:XamMenuItem Header="Item 3" /> </ig:XamContextMenu> </ig:ContextMenuManager.ContextMenu> </ig:ContextMenuManager> </ig:ContextMenuService.Manager>
Inside the <ig:XamGrid> tag is throwing this error:
The attachable property 'Manager' was not found in type 'ContextMenuService'
I am trying to follow the samples but seems to be different on XamGrid, or I am wrong?
Hi,
Your code seems correct, I expect that it should work.
Could you let me know which version are you using and if you have applied a Service Release?
Thanks,
It's InfragisticsSL4.v10.3
Version: 10.3.20103.1006
No Service Release applied, but not sure where to check it.
That also seems ok to me, last think that comes to my mind is if eventually your project is configured to build with Silverlight 3.
Could you send us a sample project which we could use for reproducing the issue and debuging?
I have the "InfragisticsSL4.Controls.Menus.XamMenu.v10.3" referenced on my project actually.
And my full xmlns definition follow:
<UserControl x:Class="Namespace.Namespace.DispatchView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows" mc:Ignorable="d" xmlns:ddm="clr-namespace:Infragistics.DragDrop;assembly=InfragisticsSL4.DragDrop.v10.3" d:DesignHeight="418" d:DesignWidth="1405" xmlns:ig="http://schemas.infragistics.com/xaml" xmlns:igPrim="http://schemas.infragistics.com/xaml/primitives" xmlns:layoutToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Layout.Toolkit">
HI, I got a similiar error message because I was missing a Reference.
Make sure you have the Infragistics.controls.Menu.XamMenu Reference.
Sincerely, MattDeveloper Support Engineer
I am not able to reproduce the issue in the versio you are using either. I am guessing it is something related to the rest of your code, could you copy paste your xmlns definitions?
If you are able to provide a sample project where I can reproduce the issue it would be best (and attach it to the current thread from the Options tab).