Method | Description | |
---|---|---|
RegisterFrame ( |
Registers a Frame instance to allow its navigation history to be saved to and restored from SessionState. Frames should be registered once immediately after creation if they will participate in session state management. Upon registration if state has already been restored for the specified key the navigation history will immediately be restored. Subsequent invocations of RestoreAsync will also restore navigation history.
|
|
RestoreAsync ( String sessionBaseKey = null ) : System.Threading.Tasks.Task |
Restores previously saved SessionState. Any Frame instances registered with RegisterFrame will also restore their prior navigation state, which in turn gives their active Page an opportunity restore its state.
|
|
SaveAsync ( ) : System.Threading.Tasks.Task |
Save the current SessionState. Any Frame instances registered with RegisterFrame will also preserve their current navigation stack, which in turn gives their active Page an opportunity to save its state.
|
|
SessionStateForFrame ( |
Provides storage for session state associated with the specified Frame. Frames that have been previously registered with RegisterFrame have their session state saved and restored automatically as a part of the global SessionState. Frames that are not registered have transient state that can still be useful when restoring pages that have been discarded from the navigation cache. Apps may choose to rely on NavigationHelper to manage page-specific state instead of working with frame session state directly. |
|
UnregisterFrame ( |
Disassociates a Frame previously registered by RegisterFrame from SessionState. Any navigation state previously captured will be removed.
|
Method | Description | |
---|---|---|
RestoreFrameNavigationState ( |
||
SaveFrameNavigationState ( |
public static RegisterFrame ( |
||
frame | An instance whose navigation history should be managed by
/// |
|
sessionStateKey | String | A unique key into |
sessionBaseKey | String | An optional key that identifies the type of session. /// This can be used to distinguish between multiple application launch scenarios. |
return | void |
public static RestoreAsync ( String sessionBaseKey = null ) : System.Threading.Tasks.Task | ||
sessionBaseKey | String | An optional key that identifies the type of session. /// This can be used to distinguish between multiple application launch scenarios. |
return | System.Threading.Tasks.Task |
public static SaveAsync ( ) : System.Threading.Tasks.Task | ||
return | System.Threading.Tasks.Task |
public static SessionStateForFrame ( |
||
frame | The instance for which session state is desired. | |
return | Object>.Dictionary |
public static UnregisterFrame ( |
||
frame | An instance whose navigation history should no longer be /// managed. | |
return | void |