private void RadTabControl_SelectionChanged(object sender, RadSelectionChangedEventArgs e)
 {
     if (detailRadTabItem.IsSelected && productDataGrid.SelectedItem != null)
     {
         // NavStateFalse();
         ProductDataForm.CommitEdit();
         //BeginEdit();
     }
 }
 private void CancelButton_Click(object sender, RoutedEventArgs e)
 {
     OnCanceling();
     if (_dialogResult == true)
     {
         if (ProductDataForm != null)
         {
             RaiseCanExecuteChanged();
             NavStateTrue();
             ProductDataForm.CancelEdit();
             ProductDataForm.CommitEdit();
         }
     }
 }