- 1). Implement "ICommandSource."
- 2). Implement the "ICommandSource members."
- 3). Add or remove the command that is related to the command source.
- 4). Create the rationale for the "Execute method" and the "CanExecuteChanged handler."
- 5). Call the execute method used for the command. If the command used is a "RouteCommand," the "RoutedCommand Execute" method will be called; if not, the "ICommand Execute" method will be called.
SHARE