Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        public void Clear()
        {
            if (m_navigation.NavigationStack.Count > 0)
            {
                ContentPage currentPage = m_navigation.NavigationStack.Last();

                DissapearEventArgs dissapearArgs = new DissapearEventArgs(NavigationDirection.Out);

                NavigationPage.InvokeOnNavigationAwareElement(currentPage, v => v.OnDissapearing(dissapearArgs));
                NavigationPage.InvokeOnNavigationAwareElement(currentPage, v => v.OnDissapeared(dissapearArgs));
            }

            m_navigation.Clear();
        }
Esempio n. 2
0
 /// <summary>
 /// Clear navigation stack and current page immediatley without animation
 /// </summary>
 public void Clear()
 {
     _navigation.Clear();
 }