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
Clone the provided repository
Run the maui app
Click on the "Open Modal Page" button (Expected output: Page transition from bottom to top ✅)
Click on the "Go modeless" button (Expected output: Page transition from right to left ❌)
Click on the 'Go to next page" button (Expected output: Page transition from right to left ❌)
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 theShell.PresentationMode
property toModal
andAnimated
on relevant pages but the Shell keep using the whatever thePresentationMode
set on the first page.If I set
Shell.PresentationMode=Modal
on the first page andShell.PresentationMode=Animated
on next pages,PresentationMode
is alwaysModal
whatever the page I'm routing to.Steps to Reproduce
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