Hi,
Welcome to Microsoft Q&A!
Derive from the official document, to enable frame state serialization using GetNavigationState, you must use only basic types for the navigation parameter, such as string, char, numeric, and GUID types. Otherwise GetNavigationState will throw an exception when the app suspends. The parameter can have other types if you do not use GetNavigationState.
In a word, if you use GetNavigationState method, you can’t pass complex objects using Frame.Navigate. As follows:
this.Frame. Navigate(Type, Object); //this object can’t be a complex object.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.