Windows Phone 8 Page Life Cycle

I started developing an application for Windows Phone 8 and wondered how my processing and tracking of instance pages could affect performance and memory consumption.

What is the normal life cycle of an object-object? Can I control the need to save a Page-Object?

thanks

+4
source share
1 answer

Not sure if you are asking the following:

Each Windows Phone page has a constructor method that is called only once when the page is created - this means that this method is called only once.

Next come the OnNavigatedTo() and OnNavigatedFrom() methods. The first is the next in the line after the constructor when you go from another page to the current. The navigation function is called when you go from the current page - when this page is added to the page stack (aka log).

This is followed by the Loaded() method, which is called after the OnNavigatedTo() method, and is also called every time you go to the current page.

Finally, you have the OnBackKeyPress() and RemovedFromJournal() methods that call when you try to jump from the page and when the page is "destroyed." The first method that is called here is OnBackKeyPress() and then RemovedFromJournal() .

+8
source

Source: https://habr.com/ru/post/1500385/


All Articles