Bonjour,
J'ai un bouton wpf qui binde sur SearchListCommand comme indiqué en dessous, quand je clique sur le bouton il ne me fais pas l'action, par contre au deuxième click il l'execute.
Voici le code de mon binding, quelqu'un peut m'aider s'il vous plait? j'ai trop chercher mais aucune information
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 public RelayCommand<string> _searchListCommand; public RelayCommand<string> SearchListCommand { get { return _searchListCommand ?? (_searchListCommand = new RelayCommand<string>( p => { if (p != null) LancerRechercheCommande(); } )); }
Partager