/// <summary> /// Register all shortcuts on the View /// </summary> /// <param name="view">The corosponding view</param> protected override void OnViewLoaded(object view) { base.OnViewLoaded(view); var window = (view as FrameworkElement).GetWindow() ?? this.GetWindowViewModel(this).GetView() as Window; if (window != null) { this.inputBindings = new InputBindings(window); this.inputBindings.RegisterCommands(this.GetInputBindingCommands()); } }