1、表格右键菜单定位到行
private void TableView_ContextMenuOpening(object sender, ContextMenuEventArgs e) { var tableView = (sender as TableView); var hitInfo = tableView.CalcHitInfo(Mouse.GetPosition(tableView)); if(!hitInfo.InRow || tableView.Grid.IsGroupRowHandle(hitInfo.RowHandle)) { e.Handled = true; } }
标签:知识点,sender,tableView,DevExpress,hitInfo,var,WPF From: https://www.cnblogs.com/kuangxiangnice/p/17655988.html