private void PointerPressedHandler()

in SampleGallery/SampleGalleryNavViewHost.xaml.cs [39:56]


        private void PointerPressedHandler(object sender, PointerRoutedEventArgs e)
        {
                     
            if (e.GetCurrentPoint((UIElement)sender).Properties.IsXButton1Pressed)
            {
                if (ContentFrame.CanGoBack)
                {
                    ContentFrame.GoBack();
                }
            }
            else if (e.GetCurrentPoint((UIElement)sender).Properties.IsXButton2Pressed)
            {
                if (ContentFrame.CanGoForward)
                {
                    ContentFrame.GoForward();
                }
            }
        }