Ved Prakash

Ved Prakash

  • NA
  • 174
  • 30k

Removing Particular page Cache in UWP XAML Apps

Nov 18 2015 4:06 AM

I am caching the Page Using the Following Code

this.NavigationCacheMode = Windows.UI.Xaml.Navigation.NavigationCacheMode.Enabled;

But when I Navigate Back from the Page, I want to Remove the Particular page Cache but not able to do that.

I am using the following code to Remove the page cache but that will remove all the Pages from cache

var frame = Window.Current.Content as Frame;         if (frame != null)         {             var cacheSize = ((frame)).CacheSize;             ((frame)).CacheSize = 0;             ((frame)).CacheSize = cacheSize;         }

So Please tell me how to remove the Particular page from cache