Exemple #1
0
 /// <summary>Returns the row that contains this cell</summary>
 public static DataGridRow GetRow(this DataGridCell cell)
 {
     return(Gui_.FindVisualParent <DataGridRow>(cell) ?? throw new Exception("Cell does not have an associated row"));
 }
Exemple #2
0
 /// <summary>Returns the cell that contains 'dp' (or null)</summary>
 public static DataGridCell?FindCell(DependencyObject dp)
 {
     return(Gui_.FindVisualParent <DataGridCell>(dp));
 }