Quantcast
Channel: User Liyun Zhang - MSFT - Stack Overflow
Viewing all articles
Browse latest Browse all 290

Answer by Liyun Zhang - MSFT for MAUI Shell navigation: how to navigate from a modal page to a non-modal page?

$
0
0

First of all, I suggest you use the CommunityToolkit.Maui.Views.Popup instead of the modal page. Such as:

<views:Popup xmlns="http://schemas.microsoft.com/dotnet/2021/maui"         xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"         xmlns:resources="clr-namespace:SkyObservers.Localization"         xmlns:views="clr-namespace:CommunityToolkit.Maui.Views assembly=CommunityToolkit.Maui"         x:Class="NameSpace.AGREEMENTPAGE"         CanBeDismissedByTappingOutsideOfPopup="False"         Shell.PresentationMode="Modal">

And then you will not meet the navigation problem you mentioned. For more information, you can refer to the official document about Popup in the maui.

In addition, you said:

I have Shell.PresentationMode="Modal" set on the Agreement page.

However, this means that when the agreement page navigates to page 2,page 2 now displays as a modal page also, which is not the desiredbehaviour.

Did you try to set the Shell.PresentationMode="Animated" (default value) for the Page 2?


Viewing all articles
Browse latest Browse all 290

Trending Articles





<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>