Closed ajrcamigla closed 10 months ago
Use the standard MAUI way to cancel navigation, for example for the Shell:
new Shell() .OnNavigating(OnNavigating); private void OnNavigating(object? sender, ShellNavigatingEventArgs args) { // Cancel any back navigation. if (args.Source == ShellNavigationSource.Pop) { args.Cancel(); } }
Use the standard MAUI way to cancel navigation, for example for the Shell: