Hi there,
I was wondering whether I could implement a menu item such as Copy,Paste and Cut when I click the right click of the mouse. I already implement the gesture of ctrl + c (copy) and ctrl + v (paste). Now i would like to right click mouse button to have the Menu item to appear in the xamDataGrid.
Regards,
snuffykl
Found my requirements. Using context menu. Great forum.
@Snuffykl: With respect to the code below, the shortcut keys work (e.g. CTRL+C), but the Copymenu is always disabled. I would have thought that XamGrid supported ApplicationCommands.Copy. Did you manage to get it to the Copy command to work in your code?
<ig:XamGrid x:Name="SampleGrid">
<ig:XamGrid.ClipboardSettings>
<ig:ClipboardSettings AllowCopy="True" CopyType="SelectedRows" CopyOptions="IncludeHeaders" AllowPaste="False" />
</ig:XamGrid.ClipboardSettings>
...
<ig:XamGrid.ContextMenu> <ContextMenu> <MenuItem Command="ApplicationCommands.Copy" /> <!-- this menu item is always disabled -->
</ig:XamGrid.ContextMenu> </ig:XamGrid> </UserControl>
ADDITIONAL CONTEXT