InfragisticsWPF3.v10.2
<
ContextMenu x:Key="RecordContextMenu">
<MenuItem Header="Menu Item 1" Name="Menu1" />
<MenuItem Header="Menu Item 2" Name="Menu2" />
</ContextMenu>
<Style TargetType="{x:Type igDP:DataRecordCellArea}">
<Setter Property="ContextMenu" Value="{StaticResource RecordContextMenu}" />
<EventSetter Event="ContextMenu.ContextMenuOpening" Handler="cm_ContextMenuOpening"/>
</Style>
I have added context menu in XamDataGrid, it also raises event "cm_ContextMenuOpening", But how to raise event when i click "Menu Item 1" or "Menu Item 2" in c#
Hello.
This thread has great information about adding context menus to the XamDataGrid and adding event handlers for each menu item:
http://forums.infragistics.com/forums/p/35591/207987.aspx
That thread points to this blog post. Please let me know if you have any questions.
Sincerely,CharlieSenior Developer Support EngineerMCTS