예제 #1
0
 public void MouseLeaveRow(DataGridRow row)
 {
     //Only reset the row bg and border if not selected.
     //Don't need to worry about cell priority again.
     if (!row.IsSelected)
     {
         row.ClearValue(DataGridRow.BackgroundProperty);
         row.ClearValue(DataGridRow.BorderBrushProperty);
     }
 }
예제 #2
0
 public void RowUnselected(DataGridRow row)
 {
     //Clear border, and cell if the user clicked away while mouse wasn't over.
     row.ClearValue(DataGridRow.BackgroundProperty);
     row.ClearValue(DataGridRow.BorderBrushProperty);
 }