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

How to close application in Xamarin forms cross-platform

$
0
0

Can i have the code to close the whole application in Xamarin Forms Cross-Platform PCL.
I written the below code in button click

protected void BtnExit_Click(object sender, EventArgs args)
{
if (Device.OS == TargetPlatform.Android)
{

        }
        if (Device.OS == TargetPlatform.iOS) 
        {

        }
        if (Device.OS == TargetPlatform.WinPhone)
        {

        }
    }

Thanks in advance :)


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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