Reputation: 31
I'm developing a UWP app for both mobile and PCs. I need to ask for a passcode every time the app start, also when resumed after suspension. When the app is resumed I navigate to a pin check page, then, if the passcode is correct I navigate to the page which was shown before suspending. The problem is that I have a page with a textbox and other control, how can I resume the text in TextBox? When I resume the app without using pin page, I have no problem because the content of the page is totally resumed. Thanks
Upvotes: 1
Views: 188
Reputation: 16652
The problem is that I have a page with a textbox and other control, how can I resume the text in TextBox?
You can use UIElement.CacheMode property and Frame.CacheSize property to cache the content of the page. You can refer to my another case UWP page state manage.
Or if you're using some templates for example template 10 to develop your app, you can use its own cache method, you can refer to Docs | Navigation Cache.
Upvotes: 0