WPF – NavigationService.GoBack() Mystery

I just had some fun with the WPF NavigationService. Let me explain.

I discovered in my windows app that all my previous pages are empty if I go back using the NavigationService.GoBack() command.

After googling around I found out that this is a wanted behaviour, as long as the page does not has the KeepAlive Property set to TRUE.

So for all who are also having fun with this small pitfall. Here’s the reference I found:
http://www.netframeworkdev.com/windows-presentation-foundation-wpf/navigationservicenavigate-vs-navigationservicegoback-76618.shtml

May the code be with you ;)
- Gerhard

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.