Skip to content

Conversation

@devanathan-vaithiyanathan
Copy link
Contributor

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Issue Details

On iOS, NavigationPage.BackButtonTitle did not update at runtime until Apply TitleView or Set TitleIconImageSource was changed.

Description of Change

Added handling for BackButtonTitleProperty in HandleChildPropertyChanged, which calls UpdateBackButtonTitle(Child) to ensure the back button title updates at runtime.

Issues Fixed

Fixes #31539

Tested the behavior in the following platforms.

  • Android
  • Windows
  • iOS
  • Mac
Before After
iOS
Before.mov
iOS
After.mov

@dotnet-policy-service
Copy link
Contributor

Hey there @@devanathan-vaithiyanathan! 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 community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration labels Sep 12, 2025
@jsuarezruiz
Copy link
Contributor

/azp run MAUI-UITests-public

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@devanathan-vaithiyanathan devanathan-vaithiyanathan marked this pull request as ready for review September 14, 2025 14:27
@devanathan-vaithiyanathan devanathan-vaithiyanathan requested a review from a team as a code owner September 14, 2025 14:27
Copilot AI review requested due to automatic review settings September 14, 2025 14:27
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 fixes an issue on iOS where the NavigationPage.BackButtonTitle property did not update at runtime without triggering other navigation-related changes. The fix ensures that changes to the BackButtonTitle property are immediately reflected in the UI.

  • Adds runtime handling for BackButtonTitle property changes in iOS NavigationRenderer
  • Includes comprehensive UI test coverage to verify the fix works correctly
  • Follows the established pattern for handling navigation property changes

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs Adds BackButtonTitle property change handling to call UpdateBackButtonTitle method
src/Controls/tests/TestCases.HostApp/Issues/Issue31539.cs Creates UI test page with buttons to test BackButtonTitle runtime updates
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue31539.cs Implements NUnit test to verify BackButtonTitle updates correctly

@jsuarezruiz
Copy link
Contributor

/azp run MAUI-UITests-public

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@PureWeen PureWeen changed the base branch from main to inflight/candidate September 18, 2025 20:00
@PureWeen PureWeen merged commit e24a277 into dotnet:inflight/candidate Sep 18, 2025
78 checks passed
github-actions bot pushed a commit that referenced this pull request Sep 18, 2025
* Update NavigationRenderer.cs

* test case added

* Update Issue31539.cs

* snapshot added
github-actions bot pushed a commit that referenced this pull request Sep 23, 2025
* Update NavigationRenderer.cs

* test case added

* Update Issue31539.cs

* snapshot added
github-actions bot pushed a commit that referenced this pull request Sep 23, 2025
* Update NavigationRenderer.cs

* test case added

* Update Issue31539.cs

* snapshot added
@github-actions github-actions bot locked and limited conversation to collaborators Oct 19, 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/ios

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[iOS, macOS] Navigation Page BackButtonTitle Not Updating

3 participants