Skip to content

Fix NavigateAndReset navigation for Maui #4076

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 22, 2025
Merged

Conversation

ChrisPulman
Copy link
Member

What kind of change does this PR introduce?

Fix
closes #3820

What is the current behavior?

#3820

What is the new behavior?

Changed RoutedViewHost to be a partial class to allow splitting its implementation.
Refactored navigation stack comparison to use the StacksAreDifferent() method for improved clarity and maintainability.

What might this PR break?

If currently calling NavigateAndReset at startup may cause navigation to end up in a different place.

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Other information:

Changed RoutedViewHost to be a partial class to allow splitting its implementation. Refactored navigation stack comparison to use the new StacksAreDifferent() method for improved clarity and maintainability.
@ChrisPulman ChrisPulman requested a review from glennawatson July 22, 2025 00:53
@glennawatson glennawatson merged commit 0c758de into main Jul 22, 2025
1 check passed
@glennawatson glennawatson deleted the CP_FixForMauiNavigation branch July 22, 2025 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: NavigateAndReset doesn't work in first view
2 participants