Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
dan@xpresscode.eu
private void PurgeBackStackButton_Click(object sender, RoutedEventArgs e)
{
while (NavigationService.CanGoBack)
Navigation...
Not running
Running
Launching
Not running
Running
LaunchingClosing
Deactivating
Dormant
Exit
Application_Closing
Deactivate
Application_Deactivated
Dorm...
Not running
Running
LaunchingClosing
DeactivatingActivating
Dormant
AttivaDormantTombstoned
Tombstoned
Not running
Running
LaunchingClosing
DeactivatingActivating
Dormant
Tombstoned
Not running
Running
LaunchingClosing
DeactivatingActivating
Dormant
private void Application_Activated(object s...
Tombstoned
Not running
Running
LaunchingClosing
DeactivatingActivating
Dormant
PhoneApplicationPage.State
PhoneApplicationService.Current.State
System.IO.IsolatedStorage.IsolatedStorageSettings.Applica...
<Tasks>
<DefaultTask Name ="_default" NavigationPage="MainPage.xaml"
ActivationPolicy="Resume">
</Tasks>
PhoneApplicationService.Current.ApplicationIdleDetectionMode =
IdleDetectionMode.Disabled;
PhoneApplicationService.Current...
var deferral = e.SuspendingOperation.GetDeferral();
//TODO: Save application state and stop any background activity.
await...
App Studio is a web-based tool that allows you to enter the world of building Windows Phone apps simply by
combining your ...
Ciclo di vita di una applicazione windows phone tips & tricks
Ciclo di vita di una applicazione windows phone tips & tricks
Ciclo di vita di una applicazione windows phone tips & tricks
Ciclo di vita di una applicazione windows phone tips & tricks
Ciclo di vita di una applicazione windows phone tips & tricks
Ciclo di vita di una applicazione windows phone tips & tricks
Ciclo di vita di una applicazione windows phone tips & tricks
Ciclo di vita di una applicazione windows phone tips & tricks
Ciclo di vita di una applicazione windows phone tips & tricks
Ciclo di vita di una applicazione windows phone tips & tricks
Ciclo di vita di una applicazione windows phone tips & tricks
Upcoming SlideShare
Loading in …5
×

Ciclo di vita di una applicazione windows phone tips & tricks

605 views

Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Ciclo di vita di una applicazione windows phone tips & tricks

  1. 1. dan@xpresscode.eu
  2. 2. private void PurgeBackStackButton_Click(object sender, RoutedEventArgs e) { while (NavigationService.CanGoBack) NavigationService.RemoveBackEntry(); } protected override void OnRemovedFromJournal(JournalEntryRemovedEventArgs e) { base.OnRemovedFromJournal(e); }
  3. 3. Not running Running Launching
  4. 4. Not running Running LaunchingClosing Deactivating Dormant Exit Application_Closing Deactivate Application_Deactivated Dormant
  5. 5. Not running Running LaunchingClosing DeactivatingActivating Dormant
  6. 6. AttivaDormantTombstoned
  7. 7. Tombstoned Not running Running LaunchingClosing DeactivatingActivating Dormant
  8. 8. Tombstoned Not running Running LaunchingClosing DeactivatingActivating Dormant private void Application_Activated(object sender, ActivatedEventArgs e) { if (e.IsApplicationInstancePreserved) { // Dormant } else { // Tombstoned } }
  9. 9. Tombstoned Not running Running LaunchingClosing DeactivatingActivating Dormant
  10. 10. PhoneApplicationPage.State PhoneApplicationService.Current.State System.IO.IsolatedStorage.IsolatedStorageSettings.ApplicationSettings
  11. 11. <Tasks> <DefaultTask Name ="_default" NavigationPage="MainPage.xaml" ActivationPolicy="Resume"> </Tasks>
  12. 12. PhoneApplicationService.Current.ApplicationIdleDetectionMode = IdleDetectionMode.Disabled; PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled;
  13. 13. var deferral = e.SuspendingOperation.GetDeferral(); //TODO: Save application state and stop any background activity. await ExecuteAsync(); deferral.Complete();
  14. 14. App Studio is a web-based tool that allows you to enter the world of building Windows Phone apps simply by combining your text and visual content with your own creativity to quickly construct an app you can use and share in four easy steps: Windows Phone App Studio 1 2 3 4 Have an idea Add content Choose style Use it Start with an empty app shell or choose from dozens of app templates Add images, text, photos, HTML5 and various feeds such as RSS, YouTube and Flickr Choose color palettes and generate live tiles and splash and lock screens from your content Use it immediately on your phone, open your source code in Visual Studio, or take your XAP over Windows Phone Store to publish apps.windowsstore.com

×