您需要保存您的数据,因为系统基本上正在终止您的应用程序。所以,你在你的app.xaml.cs需要写代码来保存和读取metods数据:
// Code to execute when the application is launching (eg, from Start)
// This code will not execute when the application is reactivated
private void Application_Launching(object sender, LaunchingEventArgs e)
{
}
// Code to execute when the application is activated (brought to foreground)
// This code will not execute when the application is first launched
private void Application_Activated(object sender, ActivatedEventArgs e)
{
}
// Code to execute when the application is deactivated (sent to background)
// This code will not execute when the application is closing
private void Application_Deactivated(object sender, DeactivatedEventArgs e)
{
}
// Code to execute when the application is closing (eg, user hit Back)
// This code will not execute when the application is deactivated
private void Application_Closing(object sender, ClosingEventArgs e)
{
}
你在哪里坚持喜好列表? IsolatedStorage? IsolatedSettings? –
这就是它,我甚至不知道该选哪个。收藏列表的目标是通过是否收藏图片,然后在另一个页面上只显示可见的收藏项目。 – topcoderwannabe
我试过看过孤立的存储电影,这里的问题,它只是让我更困惑。 – topcoderwannabe