File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,18 @@ public App()
73
73
74
74
}
75
75
76
+ private void CoreWindow_PointerPressed ( CoreWindow sender , PointerEventArgs args )
77
+ {
78
+ if ( args . CurrentPoint . Properties . IsXButton1Pressed )
79
+ {
80
+ NavigationActions . Back_Click ( null , null ) ;
81
+ }
82
+ else if ( args . CurrentPoint . Properties . IsXButton1Pressed )
83
+ {
84
+ NavigationActions . Forward_Click ( null , null ) ;
85
+ }
86
+ }
87
+
76
88
private async void CoreWindow_KeyDown ( CoreWindow sender , KeyEventArgs args )
77
89
{
78
90
var ctrl = Window . Current . CoreWindow . GetKeyState ( VirtualKey . Control ) ;
@@ -515,6 +527,7 @@ protected override void OnActivated(IActivatedEventArgs args)
515
527
// Ensure the current window is active.
516
528
Window . Current . Activate ( ) ;
517
529
Window . Current . CoreWindow . KeyDown += CoreWindow_KeyDown ;
530
+ Window . Current . CoreWindow . PointerPressed += CoreWindow_PointerPressed ;
518
531
Window . Current . CoreWindow . Dispatcher . AcceleratorKeyActivated += Dispatcher_AcceleratorKeyActivated ;
519
532
return ;
520
533
}
You can’t perform that action at this time.
0 commit comments