-
ViewAPage is tab page, and it contains
Switch
andButton
control,Switch
is binding toCanNavigateAway
property.ViewAPageViewModel
is implementingIConfirmNavigation
interface andCanNavigateAway
is used for returning value inCanNavigate
method. -
ViewBPage is tab page, and it contains
Button
,Button
andCommand
property is binding toNavigateAwayCommand
.ViewBPageViewModel
is implementingIConfirmNavigationAsync
interface and I am usingIPageDialogService
to ask user for confirm to navigate away, response fromDisplayAlertAsync
is used for return value ofCanNavigateAsync
method. -
ViewCPage is only used for navigating to it, and to show some kind of message with
Label
control. It also hasButton
to navigate back (GoBacAsync).