Skip to content

[Windows/Android] Fix Dynamic ShellContent Title Updates at Runtime#27609

Open
devanathan-vaithiyanathan wants to merge 13 commits intodotnet:mainfrom
devanathan-vaithiyanathan:fix-27494
Open

[Windows/Android] Fix Dynamic ShellContent Title Updates at Runtime#27609
devanathan-vaithiyanathan wants to merge 13 commits intodotnet:mainfrom
devanathan-vaithiyanathan:fix-27494

Conversation

@devanathan-vaithiyanathan
Copy link
Copy Markdown
Contributor

@devanathan-vaithiyanathan devanathan-vaithiyanathan commented Feb 6, 2025

Root Cause

Runtime scenarios for ShellContent were not properly handled. When ShellContent was added or removed dynamically, its property changes (such as title updates) were not tracked correctly.

Description of Change

Android: Added handling for ShellContent runtime changes in ShellSectionRenderer by subscribing and unsubscribing to ShellContent.PropertyChanged events. This ensures that property updates, such as title changes, are correctly applied when ShellContent is added or removed dynamically.

Windows: Moved title update handling from ShellContentHandler.Windows to ShellSectionHandler.Windows. This modification ensures that title changes are handled properly for both initial and dynamically added ShellContent items.

Issues Fixed

Fixes #27494

Regarding test case

Added a test case for runtime-added ShellContent title updates in PR #26062 . These tests are applicable to my changes as well

Tested the behavior in the following platforms.

  • Android
  • Windows
  • iOS
  • Mac

Output Screenshot

Before After
Android
Before-fix.mov
Android
After-fix.mov
Windows
Before-fix.mp4
Windows
After-fix.mp4

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-controls-shell Shell Navigation, Routes, Tabs, Flyout community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration platform/android platform/windows s/agent-changes-requested AI agent recommends changes - found a better alternative or issues s/agent-fix-win AI found a better alternative fix than the PR s/agent-gate-failed AI could not verify tests catch the bug s/agent-reviewed PR was reviewed by AI agent workflow (full 4-phase review)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Windows/Android] Runtime Added ShellContent Title Not Updating in TabBar

10 participants