WinRTXamlToolkit.Controls.AlternativePage.OnNavigatingFromAsync C# (CSharp) Méthode

OnNavigatingFromAsync() protected méthode

Invoked immediately before the Page is unloaded and is no longer the current source of a parent AlternativeFrame.
protected OnNavigatingFromAsync ( AlternativeNavigatingCancelEventArgs e ) : System.Threading.Tasks.Task
e AlternativeNavigatingCancelEventArgs /// Event data that can be examined by overriding code. The event data is representative /// of the navigation that will unload the current Page unless canceled. The /// navigation can potentially be canceled by setting Cancel. ///
Résultat System.Threading.Tasks.Task
        protected virtual async Task OnNavigatingFromAsync(AlternativeNavigatingCancelEventArgs e)
#pragma warning restore 1998
        {
            this.NavigationState = NavigationState.NavigatingFrom;
        }