Hi,
With Hristo's help, I have got a menu working with the HierarchicalDataTemplate.See http://www.telerik.com/community/forums/silverlight/menu/radmenu-and-hierarchicaldatatemplate.aspx
I now want to do the same with the RadContextMenu, and have applied the same concept by creating a derived RadContextMenu (named MyContextMenu) and overriding the same methods (inserting the same code).
However, when I then try to attach my context menu to an element like so:
myTextBlock.SetValue(MyContextMenu.ContextMenuProperty, contextMenuInstance);
then an ArgumentNullException is thrown from the above line (Value cannot be null. Parameter name: meth).
Is there perhaps some thing I should be initializing in my derived class MyContextMenu's constructor?
Thanks,
Nic
With Hristo's help, I have got a menu working with the HierarchicalDataTemplate.See http://www.telerik.com/community/forums/silverlight/menu/radmenu-and-hierarchicaldatatemplate.aspx
I now want to do the same with the RadContextMenu, and have applied the same concept by creating a derived RadContextMenu (named MyContextMenu) and overriding the same methods (inserting the same code).
However, when I then try to attach my context menu to an element like so:
myTextBlock.SetValue(MyContextMenu.ContextMenuProperty, contextMenuInstance);
then an ArgumentNullException is thrown from the above line (Value cannot be null. Parameter name: meth).
Is there perhaps some thing I should be initializing in my derived class MyContextMenu's constructor?
Thanks,
Nic