Beispiel #1
0
        /// <summary>
        /// 画面から離れるとき
        /// </summary>
        /// <param name="e"></param>
        protected override void OnNavigatedFrom(NavigationEventArgs e)
        {
            base.OnNavigatedFrom(e);
            this.RemoveHandler(UIElement.PointerReleasedEvent, new PointerEventHandler(mainGrid_PointerReleased));

            //終了処理
            this.ViewModel.Dispose();

            //フルスクリーンだったら元に戻す
            if (ApplicationView.GetForCurrentView().IsFullScreenMode)
            {
                ApplicationView.GetForCurrentView().ExitFullScreenMode();
            }

            //ナビメニューの表示状態を元に戻す
            AppShell shell = Window.Current.Content as AppShell;

            if (shell != null)
            {
                shell.ShowMenuPane();
            }
        }