Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
215
ContextMenu Raise Event
posted

 

 

 

 

 

 

 

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#