Hi,
I'm using data bound Commands in my application. I'm using ReadonlyCollections storing the RoutedUICommands bound to ItemsSource of the Menu. This works fine when using the standard WPF context menu. However when i try to use RadContextMenu a NotSupportedException is thrown, saying that CommandConverter cannot convert RoutedUICommand to String. Why would it want do to this conversion anyway?
Any help would be appreciated.
This is the original code using ContextMenu (MyCommandList is of type ReadOnlyCollection<RoutedUICommand>) which is working:
<
telerik:RadTreeView.ContextMenu
>
<
ContextMenu
ItemsSource
=
"{Binding Path=MyCommandList}"
/>
</
telerik:RadTreeView.ContextMenu
>
Here is the code with RadContextMenu that is not working:
<
telerik:RadContextMenu.ContextMenu
>
<
telerik:RadContextMenu
ItemsSource
=
"{Binding Path=MyCommandList}"
/>
</
telerik:RadContextMenu.ContextMenu
>