Execution process:
(program start) user clicks on the Reference program icon
The main function of the program type generated in the system execution App.xaml
The system instantiates the application type in the main function
System invoke Application type constructor
The system initializes objects declared in XAML
System creates the current application Rendering window object
System calls the current application's onwindowcreated event
The system starts running the application
System calls the current application's OnLaunched event
The system tries to fetch the contents of the current window
(You can set a page directly for the contents of the current window, but you won't be able to use the navigation mechanism.)
Determine if the previous content frame is taken, and if not, create a new frame as the form content
Determine if there is content in the frame, and if not, the system sets the transition animation for the current frame navigation and then navigates the current frame content to the mainpage
The system resets the current application window to the focus state
User Suspend app action
System calls the current application Suspending Event
The app is suspended and if the user manually stops the application or the system recycles the app resource, the current app state is changed to Notruning (program end!)
The user continues to run the current app
The system invokes the current application resuming event (and starts calling the previous Onlaunched event to execute down)
Wp8.1app Execution Process