-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] Setting Shell.PresentationMode=ModalAnimated does not hide NavigationBar on ModalPage #10309
Comments
@HobDev If you use GoToAsync (in combination with Modal PresentationMode) it will push modally so the page will be modal. In other case, for example, using PushAsync will not have any effect. |
@jsuarezruiz I want to present the LoginPage as Modal. LoginPage is first and current item of the shell on app startup. So, I don't have to use GoToAsync or PushModalAsync. I just need to set PresentationMode to Modal. |
I didn't tested the Modal Presentation with other pages in the Shell. |
@PureWeen I would like to have your opinion in this case. |
Any updates on this |
@HobDev If I'm understanding your scenario here you're wanting the LoginPage to be specified in the AppShell file. It'll be the first page that loads and it'll load modally? Currently the presentation mode only works for pages you are pushing onto the stack but just making sure I'm following your sample |
@PureWeen Exactly, I want to load LoginPage modally and it is specified in AppShell. Additionally I am curious to know the difference between ModalPage and ContentPage with hidden NavBar. It seems to me that ModalPage is also hiding the NavBar. I didn't notice any other difference. |
Reproduction Link
ShellNavigationSample.zip
Workaround
Set Shell.NavBarIsVisible ="False".
The text was updated successfully, but these errors were encountered: