Apparently there is a ContextMenu (Cut/Copy/Paste) in the cells of xamdatapresenter. How can i turn it off but keep my custom ContextMenu i created for the grid itself? As an example, see the Feature Browser WPF->xamDataGrid->Data Binding and Interaction->Unbound Fields. When you select the text inside of a cell, you can then right click and you will see a contextMenu w/ Cut/Copy/Paste.
Also, why don't the doesn' Ctrl-X, C or V actually perform the cut copy or paste anyway. Can i remove just the inputGestureText from the menu since it doesn't work anyway?
Hello treehan,
I am just checking if you require any further assistance on the matter.
Sincerely,
Ekaterina
Developer Support Engineer
Infragistics
www.infragistics.com/support
I would like to simply disable the context menu altogether, hide it completely or something. substituting a different menu is a no-go here. Is there a way to make a context menu specifically for each UnboundField or for all the UnBoundFields? I could do that and just set its Visiblity to Hidden perhaps? But I haven't been able to figure out how to do this
Hello,
I have modified the sample you sent us, so now it has the functionality you want. Basically I created a keyless Style for the XamTextEditor for the bound Fields, where I set the Visibility of the ContextMenu to Collapsed. Also I created a Style with Key and set it to the UnboundField’s Settings’ EditorStyle Property.
Hope this helps you.
what is the reasoning for not simply being able to set ContextMenu="{x:Null}" instead of making a collapsed context menu? this works on regular text boxes, but apparently not on the IG xamTextEditor?
Since the ContextMenu is set to the TextBox element in the Editor via code, not using Style, it is expected that setting the XamTextEditor's ContextMenu Property to x:Null in Style won’t hide it.