Method HandleSystemBackRequest
HandleSystemBackRequest()
Handles a system back request, such as when the user presses the back button on a mobile device, a hardware back button on a desktop or the back button in a web browser. Returns true if there is a dialog showing, a light dismiss popup was closed, a navigation is currently in progress or if a back navigation was initiated; otherwise false (meaning there was no back history).
Declaration
bool HandleSystemBackRequest()
Returns
| Type | Description |
|---|---|
| bool |
Remarks
If a dialog is showing and it implements IDismissibleDialogViewModel, the OnDismissRequestedAsync() method will be called to allow the dialog to handle the back request. If the dialog is not dismissible or if a navigation is currently in progress then the back request will still be marked as handled but the request will be ignored and no navigation will occur.