恢复状态处理

用户可以从暂停状态打开你的应用程序。在执行它时,使用 OnResuming 事件处理程序。在“App.xaml.cs”类中:

public App()
    {
        this.InitializeComponent();
        this.Suspending += OnSuspending;
        //Handle resuming operation:
        this.Resuming += App_Resuming;
    }

private void App_Resuming(object sender, object e)
    {
        //Do some operation connected with app resuming for instance refresh data
    }