Exemple #1
0
 static bool EditCommit_Core(DataGridCell cell, Predicate <FrameworkElement> editControl)
 {
     if (!cell.IsReadOnly)
     {
         try
         {
             cell.BindingGroup.BeginEdit();
             var b = cell.Edit(editControl);
             return(b);
         }
         finally
         {
             cell.BindingGroup.CommitEdit();
         }
     }
     return(false);
 }