I have this control (WPF) that uses a CommandBinding and it gets registered like this:
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 would I go about that?
Thanks!