CommandBinding can be added to a window using markup. Note that in XAML, the CommandBindingCollection is not declared in the markup as an element and the collection object is inferred by the type that the property takes and you populate the property element with one or more CommandBinding elements.
[XAML]
<Window.CommandBindings>
<CommandBinding Command='ApplicationCommands.Open'
Executed='OpenCmdExecuted'
CanExecute='OpenCmdCanExecute'/>
</Window.CommandBindings>
Share with