I need to create input binding for Window.
public class MainWindow : Window { public MainWindow() { SomeCommand = ??? () => OnAction();
This is how I solved this problem in my project:
(...)
ReportCommand is an ICommand in MyView, not in the ViewModel.
ReportCommand
ICommand
MyView