dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.24k stars 1.76k forks source link

Maui Shell navigation combined with Modal and Modeless #21702

Open tharindup opened 7 months ago

tharindup commented 7 months ago

Description

I have a Xamarin.Forms app with the following navigation behavior: MainPage -> PushModalAsync [bottom to top animation] -> PushAsync [right to left animation] * n -> PushModalAsync I tried to recreate the behavior with Maui Shell by setting the Shell.PresentationMode property to Modal and Animated on relevant pages but the Shell keep using the whatever the PresentationMode set on the first page.

If I set Shell.PresentationMode=Modal on the first page and Shell.PresentationMode=Animated on next pages, PresentationMode is always Modal whatever the page I'm routing to.

Steps to Reproduce

  1. Clone the provided repository
  2. Run the maui app
  3. Click on the "Open Modal Page" button (Expected output: Page transition from bottom to top ✅)
  4. Click on the "Go modeless" button (Expected output: Page transition from right to left ❌)
  5. Click on the 'Go to next page" button (Expected output: Page transition from right to left ❌)

Link to public reproduction project repository

https://github.com/tharindup/MauiShellTransitionTest

Version with bug

8.0.6 SR1

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android, iOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

tharindup commented 7 months ago

Can confirm the same behavior with iOS as well. @PureWeen

RoiChen001 commented 7 months ago

Can repro this issue at Android & iOS platform on the latest 17.10 preview 2(8.0.14).