我有一个 WPF
的 DataGrid
,并且在右键单击 DataGrid
时会触发 MouseRightButtonUp
事件。如何在事件处理程序中访问 DataGridCell
?
private void DataGrid_MouseRightButtonUp(object sender, MouseButtonEventArgs e)
{
//access DataGridCell on which mouse is right clicked
//Want to access cell here
}