I know it exists on Silverlight but how about WPF?
Read this part of the MSDN
Page navigation in WPF is different from Silverlight/Phone because you can opt -in for KeepAlive.
In short: use Loaded and Unloaded. KeepAlive will only influence whether or not a new instance is created.
EDIT
An alternative is to subscribe to the this.NavigationService.Navigated event but that does not get raised just for your page as far as I know.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With