Exemplo n.º 1
0
        protected override void OnNavigatedFrom(NavigationEventArgs e)
        {
            var currentView = SystemNavigationManager.GetForCurrentView();

            currentView.AppViewBackButtonVisibility = AppViewBackButtonVisibility.Collapsed;
            currentView.BackRequested -= CurrentView_BackRequested;

            // Dispose Win2D canvas
            MyCanvas.RemoveFromVisualTree();
            MyCanvas = null;

            base.OnNavigatedFrom(e);
        }