Clarify TabbedPage Shell incompatibility and modal usage#3117
Clarify TabbedPage Shell incompatibility and modal usage#3117
Conversation
|
Learn Build status updates of commit a6421ad: ✅ Validation status: passedFor more details, please refer to the build report. |
…narios Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit 1464910: ✅ Validation status: passed
For more details, please refer to the build report. |
|
@copilot this should clarify that for modals you can register tabbedpage, flyoutpage and navigationpage because its a separate space from shell |
Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
Updated in 896349d. The warning now clarifies that TabbedPage is incompatible with the Shell visual hierarchy specifically, but can be displayed as a modal page using |
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit 896349d: ✅ Validation status: passed
For more details, please refer to the build report. |
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit 27b4c3a: ✅ Validation status: passed
For more details, please refer to the build report. |
There was a problem hiding this comment.
Pull request overview
This pull request clarifies the incompatibility between TabbedPage and .NET MAUI Shell navigation, addressing user confusion about "View Not found" errors when attempting to navigate to a TabbedPage using Shell routing.
Changes:
- Expanded the existing WARNING section to explicitly state that TabbedPage cannot be registered as a route with
Routing.RegisterRouteor navigated to withShell.Current.GoToAsync - Added clarification that TabbedPage CAN be used as a modal page in Shell apps via
Navigation.PushModalAsync - Included links to Shell tabs documentation (recommended alternative) and modal navigation documentation
- Updated the ms.date field to reflect the material change
Users attempting to navigate to a
TabbedPagefrom a Shell app usingRouting.RegisterRouteandShell.Current.GoToAsyncget a "View Not found" error with no clear explanation why.Changes
Routing.RegisterRoutecannot register aTabbedPageas a route in the Shell visual hierarchyShell.Current.GoToAsynccannot navigate to aTabbedPageTabbedPageCAN be used as a modal page in Shell apps usingNavigation.PushModalAsyncbecause modal pages exist in a separate navigation spaceExample of what doesn't work
Example of what DOES work
For Shell apps needing tabs as part of the visual hierarchy, use
TabBar/Tab/ShellContentinstead. For displaying a TabbedPage temporarily, use modal navigation.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
Internal previews