0

I'm looking to create state management for a Windows App desktop. It seems when going to back and forth from pages, the controls don't maintain their values. Do I have to cache the controls?

Andrew KeepCoding
  • 7,040
  • 2
  • 14
  • 21

1 Answers1

1

You need to set NavigationCacheMode to Required in pages that you want them to be cached while navigation.

<Page
  ...
  NavigationCacheMode="Required"
  ...
/>
Andrew KeepCoding
  • 7,040
  • 2
  • 14
  • 21