Skip to content

Conversation

@Vignesh-SF3580
Copy link
Contributor

Issue Detail

The back button visibility was not updating correctly when the page did not have a NavigationPage.

Root Cause

The back button visibility was being updated only when the parent was a NavigationPage. As a result, it did not update properly when there was no NavigationPage.

Description of Change

Only the toolbar visibility was updated when the page did not have a NavigationPage. Now, the back button visibility is also updated along with the toolbar visibility to resolve the issue.

Tested the behavior in the following platforms

  • Android
  • Windows
  • iOS
  • Mac

Issues Fixed

Fixes #14689

Screenshots

Before Issue Fix After Issue Fix
14689BeforeFix.mp4
14689AfterFix.mp4

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Mar 13, 2025
@dotnet-policy-service
Copy link
Contributor

Hey there @Vignesh-SF3580! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@dotnet-policy-service dotnet-policy-service bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Mar 13, 2025
@jsuarezruiz
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@jsuarezruiz
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@Vignesh-SF3580 Vignesh-SF3580 marked this pull request as ready for review March 17, 2025 05:16
Copilot AI review requested due to automatic review settings March 17, 2025 05:16
@Vignesh-SF3580 Vignesh-SF3580 requested a review from a team as a code owner March 17, 2025 05:16
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses the issue of the BackButton not updating correctly on Windows when switching tabs without a NavigationPage by ensuring the back button visibility is updated along with the toolbar visibility.

  • Added test cases in both the Shared.Tests and HostApp projects to verify the fix.
  • Modified the Windows ToolbarExtensions to update the back button visibility using a helper method.

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

File Description
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue14689.cs Added a test verifying back button update behavior.
src/Controls/tests/TestCases.HostApp/Issues/Issue14689.cs Introduced a HostApp scenario for back button update in TabbedPage.
src/Controls/src/Core/Platform/Windows/Extensions/ToolbarExtensions.cs Updated code to call a helper method for consistent back button visibility update.

@jsuarezruiz
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@jsuarezruiz
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@rmarinho rmarinho merged commit 9a06402 into dotnet:main Mar 27, 2025
129 checks passed
@rmarinho rmarinho added this to the .NET 9 SR6 milestone Mar 27, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Apr 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-navigation NavigationPage community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration platform/windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TabbedPage: WinUI: Back-button persists when swapping to a Tab that does not have a NavigationPage.

3 participants