Amin
Amin

Reputation: 1923

Refresh a page or navigate to same page in windows phone 8.1 (c#)

I searched but I always find a way for windows phone 8 that doesn't work for windows phone 8.1.
I want to refresh a page or navigate to same page in windows phone 8.1.
I Want to do this on windows phone 8.1 .
Please help me.
Thanks.

Upvotes: 1

Views: 603

Answers (2)

Amin
Amin

Reputation: 1923

I Just change mode of NavigationCacheMode.

NavigationCacheMode = NavigationCacheMode.Disabled;

With this code, I disable cache.
Thanks everyone.

Upvotes: 1

Muhammad Saifullah
Muhammad Saifullah

Reputation: 4292

your first page is already loaded. all you need to do is to GoBack. In your second page where you want to go to first page use this code.

   if (this.Frame.CanGoBack)
                this.Frame.GoBack();

Hope this helps.

Upvotes: 0

Related Questions