-
Greetings, I have an existing mobile application in MAUI designed for portrait/phone primarily and it is working great with AppShell Navigation. We have a new business requirement coming that when the app is run on a tablet it will be forced to landscape mode and the screen will be split into two sections: The left side will run the app exactly as it exists now and the remainder of the right side should be used as a static map view. As the user interacts with the left side the app should navigate normally using AppShell Navigation but the right side will always stay the same. I've tried creating a new tablet specific AppShell with a singular ShellContent to define a Grid for a split with one side being a ContentView and the other half the MapView. I would override OnNavigating in the codebehind to essentially intercept and transplant the ContentPage data to the ContentView. This "sort of" works. However I lose the benefits of the existing AppShell Navigation as a whole when I do this. I've looked into the TwoPanelView as a potential solution but I have yet to figure out how or if I can get the app to essentially run in one pane and do something else in the other. Maybe I need to dig deeper into it. I've never used it before. Does anyone have any suggestions or solutions they can share? It would be much appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I've built something that can work fairly well so far. I do have to concede that any split screen version of the app cannot use AppShell navigation normally. This involves overriding normal shell navigation and managing a page stack manually. I don't have a navigation title bar set up yet but that is next on my list. If anyone is interested in seeing the code it's in my github: |
Beta Was this translation helpful? Give feedback.
I've built something that can work fairly well so far. I do have to concede that any split screen version of the app cannot use AppShell navigation normally. This involves overriding normal shell navigation and managing a page stack manually. I don't have a navigation title bar set up yet but that is next on my list.
If anyone is interested in seeing the code it's in my github:
https://github.com/timdog/AppShellSplitScreen