Skip to content
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

Fix ShellContent Title doesn't observe changes to bound properties #24806

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

devanathan-vaithiyanathan
Copy link

@devanathan-vaithiyanathan devanathan-vaithiyanathan commented Sep 17, 2024

Root Cause

The issue was due to the ShellContent title not updating dynamically in response to property changes. On Android, the title updates were not reflected in real time because the Title property changes were not being observed. On Windows, the title updates were not properly mapped to the native WinUI control.

Description of Change

Android: Enabled dynamic tab title updates by subscribing to the PropertyChanged event for BaseShellItem. Updated TitleProperty to TwoWay binding for real-time title updates in ShellSectionRenderer.

Windows: Mapped ShellContent title to the native WinUI control by calling UpdateTitle() in ShellItemHandler, ensuring title changes are reflected immediately in the UI.

Issues Fixed

Fixes #7453

Validated the behaviour in the following platforms

  • Android
  • Windows
  • iOS
  • Mac

@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Sep 17, 2024
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community ✨ Community Contribution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ShellContent Title doesn't observe changes to bound properties
1 participant