question

IgorKravchenko-7896 avatar image
0 Votes"
IgorKravchenko-7896 asked WenyanZhang-MSFT commented

How to clear cached pages in Shell?

Hi!
In my Shell application I need to clear all data from pages after logout. How can I do this? How can I clear content for all flyout items?
I see here a property ContentCache, I need to clear that property to recreate my page. Or do it by another legal way.
Thanks.


dotnet-xamarin
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

If you want to clear all data from pages, maybe you can remove all data from ViewModel and remove the caches in app such as database, user information and so on. If you want to recreate the page, you don't need to clear the content, you can replace it.
For more information, you can refer to the Docs about "Replace flyout content".


0 Votes 0 ·

0 Answers