private static void AddToLog(string message) { if (NavigationEvents.Count == 8) { NavigationEvents.Clear(); } NavigationEvents.Add(message); }
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(); }