[英]Event when exiting GridView's reorder mode on Windows Phone 8.1
[英]Execute code when exiting Windows 8.1 App
我試圖在退出時在Windows 8.1應用程序上執行一些代碼,當用戶正常向下拖動應用程序(而不是擴展保留來終止)時。
在Windows 8中,我使用以下代碼在退出時清除了應用的磁貼:-
private async void OnSuspending(object sender, SuspendingEventArgs e)
{
Windows.UI.Notifications.TileUpdateManager.CreateTileUpdaterForApplication().Clear();
}
但是,當應用終止方式更改時,Windows 8.1中不會調用此代碼。
如何為Windows 8.1重新創建代碼?
在8.1中,關閉手勢不再會殺死應用程序。 相反,您必須將其在按鈕上按住1秒鍾,然后在圖標翻轉時關閉應用程序。
查看代碼是否在此處執行。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.