Je possède ce contrôle (WPF) qui utilise un CommandBinding et il s'enregistre comme ceci:Comment effacer les liaisons de commandes enregistrées par CommandManager?
CommandBinding binding = new CommandBinding(ApplicationCommands.Delete, OnDeleteExecuted, CanExecuteDelete);
CommandManager.RegisterClassCommandBinding(typeof(MyObject), binding);
Alors, quand je décharge le contrôle, je veux effacer cette liaison. Comment pourrais-je m'y prendre?
Merci!
http://stackoverflow.com/questions/21511674/set-command-target-to-template-part/21515179#21515179 –