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:
In the back-end code I have the following:Code:<Page.InputBindings> <KeyBinding Key="Escape" Command="nav_GotoHome" /> </Page.InputBindings>
I'm just not sure how to go about doing this, please advise!!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




Reply With Quote