I need a context menu for a cell or even at the sheet level that allows me to define the commands that are used, not use the predefined commands in the SpreadsheetContextMenuProvider. Is this possible?
Hello Terence, Thank you for contacting Infragistics. You can define your own custom context menu by creating a new instance of SpreadsheetContextMenuProvider, and set it to the ContextMenuProvider propoerty of the XamSpreadsheet.
Please refer to the following help topic for a complete tutorial:http://www.infragistics.com/help/wpf/spreadsheet-work-context-menu
Let me know if you have any questions regarding this matter.
I saw that example but I want to do other things that are not included in predefined commands in the SpreadsheetContextMenuProvider. I want to execute my own custom ICommand that has nothing to do with fonts or moving cells. I just need to execute some code on my data context that is hosting the XamSpreadsheet. I assume the sample limits me to the predefined commands due to the context being either cell or sheet or whatever. But can't I define a command using relative source to get to my data context?