我为我的 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));
}