예제 #1
0
        private static void AddToLog(string message)
        {
            if (NavigationEvents.Count == 8)
            {
                NavigationEvents.Clear();
            }

            NavigationEvents.Add(message);
        }
예제 #2
0
 public static void DisableNavigationLogging(this PhoneApplicationPage page)
 {
     page.NavigationService.FragmentNavigation  -= NavigationService_FragmentNavigation;
     page.NavigationService.JournalEntryRemoved -= NavigationService_JournalEntryRemoved;
     page.NavigationService.Navigated           -= NavigationService_Navigated;
     page.NavigationService.Navigating          -= NavigationService_Navigating;
     page.NavigationService.NavigationFailed    -= NavigationService_NavigationFailed;
     page.NavigationService.NavigationStopped   -= NavigationService_NavigationStopped;
     NavigationEvents.Clear();
 }