I have this control (WPF) that uses CommandBinding and registers as follows:
CommandBinding binding = new CommandBinding(ApplicationCommands.Delete, OnDeleteExecuted, CanExecuteDelete); CommandManager.RegisterClassCommandBinding(typeof(MyObject), binding);
So, when I unload the control, I want to clear this binding. How can i do this?
Thanks!
Carlo source share