Hello,
You can use Shell Navigation to do it.
For example, if you want to navigate to the NewPage1
, you should register this NewPage1 in the AppShell
background code.
public AppShell()
{
InitializeComponent();
Routing.RegisterRoute("NewPage1", typeof(NewPage1));
}
Then you can navigate it by await Shell.Current.GoToAsync("NewPage1");
If you want to pass data in navigation, you can refer this document:pass data in shell navigation
As you said, you want to do Modal NavigationPage, if you want to hide the shell navigation bar, you can add Shell.NavBarIsVisible="False"
in navigated page.
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="MauiApp1.NewPage1"
Shell.NavBarIsVisible="False"
Title="NewPage1">
If you have issue about ListView cannot update, please open a new thread and post related code that could reproduce this issue.
Best Regards,
Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.