在App.xaml.cs中指定
public App ()
{
InitializeComponent();
MainPage = new XamarinDemo.MainPage();
}
同时,这里也控制着app starts(启动)、app sleeps(睡眠)、app resumes(唤醒)状态下的工作
protected override void OnStart ()
{
// Handle when your app starts
}
protected override void OnSleep ()
{
// Handle when your app sleeps
}
protected override void OnResume ()
{
// Handle when your app resumes
}
网友评论