Hemant-Webo
Hemant-Webo

Reputation: 543

OnNavigatedFrom() vrs OnNavigatedTo() in Windows App

I saw this while surfing about Windows 10 apps and Life cycle, can anybody put some more light on this topic, a illustration with an example will delightful.

On Windows Phone, OnNavigatedFrom() is called when the app is suspended. OnNavigatedTo() is not called when the app is resumed.

Upvotes: 0

Views: 3083

Answers (1)

Nasser AlNasser
Nasser AlNasser

Reputation: 1775

OnNavigatedFrom It's override void so you can use it by writing override in your .cs page ..

This event will be fired -invoked- when you're leaving the page .. and before navigating from it ..

OnNavigatedTo Will be fired -invoked- when you arrive to the page .

Upvotes: 7

Related Questions