Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

Windows Phone Back Button Navigation

$
0
0

Hi,

So in my Windows Project I have the Hardware Back Button pressed code

 void HardwareButtons_BackPressed(object sender, BackPressedEventArgs e)
        {

            if (OnPageMenu == false)
            {
                e.Handled = true;
            }
            else
            {
                e.Handled = false;
            }
}

On my menu page in the PCL I set the bool to false if its not on the menu page. But if its on the menu page I don't want the back button to do anything but e.handled = false just closes the whole app and e.handled true moves to the login page which i don't want. I just want it to stay on the page if its on the menu.

Thanks in advance.


Viewing all articles
Browse latest Browse all 75885

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>