I have a NavigationWindow that obviously displays pages. If I'm wanting to create custom keystrokes for my application, how should I go about doing it. I've tried:
Code:
<Page.InputBindings>
    <KeyBinding Key="Escape" Command="nav_GotoHome" />
</Page.InputBindings>
In the back-end code I have the following:
Code:
Sub nav_GotoHome(ByVal sender As Object, ByVal argsM As MouseButtonEventArgs, ByVal argsK As KeyboardEventArgs)
    Dim Home As New pgHome()
    Me.NavigationService.Navigate(Home)
End Sub
I'm just not sure how to go about doing this, please advise!!