How does one add a ContextMenu
to a DataGrid
? I want to be able to right click anywhere on the DataGrid.
<DataGrid>
<DataGrid.ContextMenu>
<ContextMenu>
<MenuItem Header="Click Me" Click="MenuItem_Click" />
</ContextMenu>
</DataGrid.ContextMenu>
</DataGrid>