private static void OnUnloadedCallStatic(PageLifetimeServiceBase obj, object sender, RoutedEventArgs e)
 {
     obj.DetachEvents();
     obj.OnUnloaded(obj.Page, e);
 }
 private static void OnNavigatedToCallStatic(PageLifetimeServiceBase obj, object sender, NavigationEventArgs e)
 {
     obj.OnNavigatedTo(sender as Page, e);
 }
 private static void OnNavigatedFromCallStatic(PageLifetimeServiceBase obj, object sender, NavigationEventArgs e)
 {
     obj.OnNavigatedFrom(sender as Page, e);
     if (e != null)
     {
         if (e.NavigationMode == NavigationMode.Back || e.NavigationMode == NavigationMode.New)
         {
             obj.OnPageLeave();
         }
     }
 }
 private static void OnAppResumeCallStatic(PageLifetimeServiceBase obj, object sender, object o)
 {
     obj.OnResume(sender as Page, o);
 }