DataGridColumn.PrepareCellForEdit(FrameworkElement, RoutedEventArgs) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
En cas de substitution dans une classe dérivée, définit le contenu des cellules en fonction des besoins en matière de modification.
protected:
virtual System::Object ^ PrepareCellForEdit(System::Windows::FrameworkElement ^ editingElement, System::Windows::RoutedEventArgs ^ editingEventArgs);
protected virtual object PrepareCellForEdit(System.Windows.FrameworkElement editingElement, System.Windows.RoutedEventArgs editingEventArgs);
abstract member PrepareCellForEdit : System.Windows.FrameworkElement * System.Windows.RoutedEventArgs -> obj
override this.PrepareCellForEdit : System.Windows.FrameworkElement * System.Windows.RoutedEventArgs -> obj
Protected Overridable Function PrepareCellForEdit (editingElement As FrameworkElement, editingEventArgs As RoutedEventArgs) As Object
Paramètres
- editingElement
- FrameworkElement
Élément affiché par la colonne pour une cellule en mode édition.
- editingEventArgs
- RoutedEventArgs
Informations sur le mouvement utilisateur qui provoque l’entrée d’une cellule en mode d’édition.
Retours
Lorsqu’elle est retournée par une classe dérivée, la valeur de cellule non modifiée. Cette implémentation retourne null dans tous les cas.
Remarques
Les types de colonnes dérivés remplacent cette méthode pour répondre au mouvement utilisateur indiqué par editingEventArgs et retourner la valeur actuelle avant la modification.