【发布时间】:2013-07-12 20:32:18
【问题描述】:
我为我的 Windows Phone 应用程序创建了一个扩展的初始屏幕,但现在每次我在主页上按回时它都会重新加载扩展的初始屏幕。是否可以将其从导航堆栈中移除并让应用执行 application_closure 事件?
飞溅代码:
public partial class ExtendedSplashScreen : PhoneApplicationPage
{
public ExtendedSplashScreen()
{
InitializeComponent();
//Call MainPage from ExtendedSplashScreen after some delay
Splash_Screen();
}
async void Splash_Screen()
{
await Task.Delay(TimeSpan.FromSeconds(3)); // set your desired delay
NavigationService.Navigate(new Uri("/Screens/HomeScreen.xaml", UriKind.Relative));
}
【问题讨论】:
标签: navigation windows-phone-8 splash-screen back