I have WPF application that follow MVVM pattern. I need to implement keyboard shortcuts. These shortcut have to contol WebBrowser control behaviour. I defined first custom c
<Window.InputBindings> <KeyBinding Command="{Binding MyCommand, Source=viewModel...}" CommandParameter="{Binding,ElementName=browserControl,Mode=Self}" Gesture="CTRL+R" /> </Window.InputBindings>
You can bind command property to View Model's command.