Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

Note that application-wide commands by default are only available on the main window of an application. To support this on other windows, add the following code in the constructor of a window:

Code Block
public class SomeWindow
{
    private readonly CommandManagerWrapper _commandManagerWrapper;
 
    public SomeWindow()
    {
        InitializeComponent();
 
        _commandManagerWrapper = new CommandManagerWrapper(this);
    }
}

Creating application-wide commands

...