Repository navigation
[Windows]Fix TabBar transition animation not completing - #38637
Conversation
|
Hey there @@SubhikshaSf4851! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 38637Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 38637" |
This comment has been minimized.
This comment has been minimized.
MauiBot
left a comment
There was a problem hiding this comment.
AI Review Summary
@SubhikshaSf4851 — new AI review results are available based on commit
c88bcbc.
🗂️ Review Sessions — click to expand
🚦 Gate — Test Before & After Fix
Gate Result: ⚠️ SKIPPED
No tests were detected in this PR.
Recommendation: Add tests to verify the fix using the write-tests-agent.
📋 Pre-Flight — Context & Validation
PR #38637 Pre-Flight
Context
- PR:
[WIP][Windows]Fix TabBar transition animation not completing - State: Open draft against
main; materialized locally as commitc419eed070. - Issue: #38422,
[Windows] End animation not playing TabBar. - Affected platform: Windows (reported with Windows SDK 10.0.19041.0).
- Reproduction: Create a Shell app with a
TabBarcontaining at least two tabs and switch tabs. - Expected: Both the start and end selection-indicator animations play.
- Actual: The start animation plays, but the end animation does not.
- Gate: Skipped because the PR adds no tests. The gate must not be rerun and its existing artifact must remain unchanged.
Existing PR Approach
The PR changes only src/Controls/src/Core/Handlers/Shell/ShellItemHandler.Windows.cs. In UpdateTabBarVisibility, it avoids assigning MauiNavigationView.PaneDisplayMode when the requested NavigationViewPaneDisplayMode is already active:
- mauiNavView.PaneDisplayMode = paneDisplayMode;
+ if (mauiNavView.PaneDisplayMode != paneDisplayMode)
+ {
+ mauiNavView.PaneDisplayMode = paneDisplayMode;
+ }The PR's hypothesis is that a redundant native dependency-property assignment restarts pane-display-mode processing and interrupts the final TabBar transition animation. PinPaneDisplayModeTo is still assigned after this block.
Relevant Implementation Detail
MauiNavigationView.PinPaneDisplayModeTo stores a desired mode and immediately calls UpdateToPinnedDisplayMode(). That helper writes PaneDisplayMode only when the pinned value differs from the native value, and a registered PaneDisplayModeProperty callback re-applies the pin if WinUI changes it later. Alternative candidates must remain within the baseline allow-list (the PR-modified Shell handler file) and must not edit MauiNavigationView.cs or tests.
Bounded Validation
No animation-specific automated test exists. The closest Windows regression coverage is:
ShellTabBarVisibilityToggleWorksShellTabBarVisibilityToggleWorksRemovingCurrentItem
Each candidate must use only this bounded device-test command (one implementation/test pass plus at most one focused correction/retest):
pwsh .github/skills/run-device-tests/scripts/Run-DeviceTests.ps1 -Project Controls -Platform windows -TestFilter "Category=Shell" -IncludeClasses "Microsoft.Maui.DeviceTests.ShellTests" -IncludeMethods "ShellTabBarVisibilityToggleWorks,ShellTabBarVisibilityToggleWorksRemovingCurrentItem"This validates pane mode transitions but cannot prove the visual end-animation behavior; successful automated results therefore require later manual Windows animation verification.
Constraints for Try-Fix
- Use
pwsh .github/scripts/EstablishBrokenBaseline.ps1and the generated baseline allow-list. - Restore only with
pwsh .github/scripts/EstablishBrokenBaseline.ps1 -Restore. - Preserve all pre-existing unrelated worktree changes.
- Attempt one mechanism-level alternative to the PR, perform the mandatory inline expert self-review, capture artifacts, and restore.
- Do not add tests, run the gate, run a full suite, or invoke a separate reviewer.
🔬 Code Review — Deep Analysis
Code Review — PR #38637
Independent Assessment
What this changes: ShellItemHandler.UpdateTabBarVisibility now assigns the Windows MauiNavigationView.PaneDisplayMode dependency property only when the requested mode differs from the current mode. It still updates PinPaneDisplayModeTo on every call.
Inferred motivation: Avoid reprocessing an unchanged pane mode while a top-navigation selection transition is in progress, because that redundant native assignment can interrupt the selection indicator's completion animation.
Reconciliation with PR Narrative
Author claims: Reassigning the same PaneDisplayMode disrupts the TabBar end animation, so the handler should guard the assignment.
Agreement/disagreement: The implementation matches that claim. The pinning path remains intact: setting PinPaneDisplayModeTo stores the requested mode and calls UpdateToPinnedDisplayMode, which writes only when the native mode differs.
Prior Review Reconciliation
No prior ❌ Error findings found across top-level reviews, inline review comments, or PR issue comments.
Blast Radius Assessment
- Runs for all instances: The mapper runs for Windows Shell items whenever TabBar visibility is applied, but behavior changes only when the requested native pane mode already matches the current mode.
- Startup impact: The mapper may run during Shell initialization, but the guard only suppresses a redundant dependency-property write.
- Static/shared state: None added.
- Null/default behavior: The existing
PlatformView is not MauiNavigationViewguard remains. No new nullable state is introduced.
CI Status
- Required-check result: Pending; the live PR head had
maui-prcheck runs in progress. - Trusted Gate result:
⚠️ SKIPPED because the PR adds no tests; the Gate was not rerun. - Classification: Undetermined for merge approval. The bounded Shell regression tests and the visual Windows animation were not verified by this review.
- Action taken: Confidence capped at low for approval readiness; no CI investigation was performed before the required comparative artifacts.
Findings
No actionable file:line findings. inline-findings.json contains [].
Failure-Mode Probing
- Requested mode already equals the native mode: The new direct assignment is skipped.
PinPaneDisplayModeTois still updated, and its reconciliation helper also no-ops because the values match. - Requested mode differs: The handler performs the same native assignment as before, then updates the pin; the pin helper sees the reconciled value and does not write again.
- Existing pin is stale: The setter replaces the stale pin before reconciling, so the requested mode becomes both the native value and the pinned value.
- WinUI later changes the mode: The existing
PaneDisplayModePropertycallback invokesUpdateToPinnedDisplayModeand restores the pinned mode. - Handler reconnect/default state: No lifecycle state or subscription changes were introduced; the next mapper call computes and pins the current requested mode.
External Output Contract
Not applicable.
Verdict: NEEDS_DISCUSSION
Confidence: low
Summary: The expert code review found the submitted guard sound and found no actionable defects. Approval readiness remains undetermined because the trusted Gate was skipped and live CI was still pending; the visual animation claim also requires Windows manual verification.
🛠️ Try-Fix — Analysis & Comparison
Aggregate Try-Fix Results
Candidate 1 — Pin-Only Pane Mode Application
- Model:
gpt-5.3-codex - Result: Blocked
- Approach: Remove the handler's direct
PaneDisplayModewrite and makePinPaneDisplayModeTothe sole initial/reapply mechanism. - Diff: None; baseline establishment failed before editing.
- Tests: Not run; the required bounded Windows command was skipped because no safe baseline allow-list was created.
- Failure:
EstablishBrokenBaseline.ps1rejected the pre-existing dirty worktree. The exact restore command ran afterward and reported the expected no-state result,Restored=False. - Self-review: 0 findings against the empty diff.
- Details:
../try-fix-1/content.md
Candidate 2 — Suppress Duplicate Shell Selection Mutation
- Model:
gpt-5.6-sol - Result: Blocked
- Approach: Prevent a second parent
Shell.CurrentItemmutation afterProposeSection, addressing duplicate navigation/property propagation before it can invoke the TabBar visibility mapper again. - Prior approaches avoided: Unlike PR #38637, this does not guard the native current value. Unlike candidate 1, it does not make
PinPaneDisplayModeTothe sole pane-mode writer. - Diff: None; baseline establishment failed before editing.
- Tests: Zero tests ran; the required bounded Windows command was skipped because no safe baseline allow-list was created.
- Failure:
EstablishBrokenBaseline.ps1rejected the same pre-existing dirty tracked worktree. The exact restore command ran and reported the expected no-state result,Restored=False. - Self-review: 0 findings against the empty diff.
- Details:
../try-fix-2/content.md
Current Aggregate
Two candidates were attempted, satisfying the bounded maximum:
| Candidate | Model | Mechanism | Result |
|---|---|---|---|
| 1 | gpt-5.3-codex |
Make PinPaneDisplayModeTo the sole pane-mode application path |
Blocked before edit/test |
| 2 | gpt-5.6-sol |
Prevent duplicate upstream Shell selection mutation | Blocked before edit/test |
Neither candidate produced an implementation or empirical test result because the environment could not establish a restorable baseline. Both preserved the existing worktree and completed the mandated restore command. The existing PR diff remains the only implemented fix and still requires manual Windows verification of the visual end animation.
📝 PR Finalize — Recommended Title & Description
Assessment: ✏️ Recommend updating — the description is technically accurate, but the title contains a WIP marker, omits the required component separator, and needs spacing; the revised metadata preserves the existing technical detail while making the changed file and validation limitation clearer.
Recommended title
[Windows] Shell: Avoid redundant PaneDisplayMode updates during TabBar transitions
Recommended description
### Root Cause
- `UpdateTabBarVisibility()` always assigned `MauiNavigationView.PaneDisplayMode`, even when the requested value was already active.
- Reassigning the same value unnecessarily causes the navigation view to process the pane-display-mode update again.
- That redundant update interferes with the end portion of the TabBar transition animation: the start animation plays, but the transition does not complete normally.
### Description of Change
- Updated `UpdateTabBarVisibility` in `src/Controls/src/Core/Handlers/Shell/ShellItemHandler.Windows.cs` to compare the current `PaneDisplayMode` with the requested value before assigning it.
- This avoids redundant native property updates and allows the TabBar transition, including its end animation, to complete normally.
### Testing
No automated test was added because the selection indicator's end animation cannot be captured reliably through automation. Manual Windows verification is required to validate the final animation state.
### Issues Fixed
Fixes #38422
### Tested the Behavior on the Following Platforms
- [x] Windows
- [ ] Android
- [ ] iOS
- [ ] Mac
| Before Issue Fix | After Issue Fix |
|---|---|
| <video src="https://github.com/user-attachments/assets/63862d31-4ebb-4535-878d-59dafeb1e7c9"> | <video src="https://github.com/user-attachments/assets/c68fbfe2-9905-4d89-a8f3-a868cfae7d36"> |
🏁 Report — Final Recommendation
⚠️ Final Recommendation: REQUEST CHANGES
Winning Candidate
Winner: pr
The submitted PR is the only implemented candidate and the expert reviewer found its Windows Shell pane-mode guard correct, with no actionable inline findings. pr-plus-reviewer is code-identical because there was no reviewer feedback to apply, while both try-fix candidates were blocked before producing a diff or running regression tests.
Approval is not recommended yet: the trusted Gate was skipped because the PR adds no tests, the bounded Windows Shell regression tests were not run for any candidate, and live maui-pr checks were still pending. The visual end-animation behavior also remains dependent on manual Windows verification.
Candidate Comparison
| Rank | Candidate | Mechanism | Implementation | Regression evidence | Assessment |
|---|---|---|---|---|---|
| 1 | pr |
Skip the direct PaneDisplayMode assignment when the requested mode already matches; continue updating PinPaneDisplayModeTo. |
Complete one-file diff. | Gate skipped; bounded tests not run; author supplies Windows before/after videos. | Winner. Exact state tracing shows no lost propagation: differing modes are applied, stale pins are replaced, and later WinUI changes are still corrected by the existing callback. |
| 2 | pr-plus-reviewer |
Same as pr; the expert review supplied no actionable refinement. |
Complete but code-identical to pr; reviewer.patch is empty. |
Not run because there was no reviewer delta; inherits the raw PR's evidence gap. | Sound, but not a distinct improvement. The raw PR wins the tie because it already contains the same code. |
| 3 | try-fix-1 |
Make PinPaneDisplayModeTo the sole pane-mode application path. |
Blocked before edit; empty diff. | Zero tests ran. | Plausible centralization, but there is no implementation or empirical evidence to compare against the reviewed PR. |
| 4 | try-fix-2 |
Suppress a duplicate upstream Shell.CurrentItem mutation after ProposeSection. |
Blocked before edit; empty diff. | Zero tests ran. | Unverified and broader in behavioral scope than the localized native-property guard, so it carries greater navigation regression risk. |
No candidate failed a regression test, but no candidate passed one either. The blocked and unimplemented try-fix candidates therefore rank below the implemented, expert-reviewed PR.
Expert Review
inline-findings.json:[]- Raw PR code verdict: No actionable code defect found.
- Blast radius: Windows-only Shell/TabBar handler plumbing; no new shared state, subscription, public API, or lifecycle behavior.
- Remaining uncertainty: visual animation completion was not independently exercised, and automated pane-mode transition coverage was not run.
Required Follow-up
Run the bounded Windows Shell regression tests and manually verify that switching between at least two TabBar items plays both the start and end indicator animations. Reassess only after the pending CI checks and this platform-specific validation complete.
🔗 Regression Cross-Reference
🔍 Regression Cross-Reference
⚠ Overlaps with prior bug-fix PRs — same files modified, but no exact line revert detected.
| File | Fix PR | Fixed issue(s) |
|---|---|---|
src/Controls/src/Core/Handlers/Shell/ShellItemHandler.Windows.cs |
#36558 | #36466 |
📱 UI Tests — Shell
Detected UI test categories: Shell
[!WARNING]
No UI test results were produced for the detected categories. The trusted gate was
skipped before build/test verification, so it does not prove that the PR build is healthy.
The deep UI stage also returned no results; inspect the independent CI checks and retry the
review if those categories still need coverage.
🧭 Next Steps — review latest findings
No alternative fix was selected for this run. Review the session findings and CI results before merging.
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
This comment has been minimized.
This comment has been minimized.
|
Warning Your |
<!-- Please keep the note below for people who find this PR --> > [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment whether this change resolves your issue. Thank you! ### Root cause : - `UpdateTabBarVisibility()` was always assigning `MauiNavigationView.PaneDisplayMode`, even when the requested value was already the current value. - Reassigning the same value unnecessarily causes the navigation view to process the pane-display-mode change again. - This interferes with the end portion of the TabBar transition animation. The start animation can be observed, but the redundant `PaneDisplayMode` update prevents the transition from completing normally. ### Description of change - Added a check in `UpdateTabBarVisibility` to compare the current `PaneDisplayMode` with the requested value before updating it. - This prevents redundant native property updates and allows the TabBar transition to complete normally, including the end animation. ### Why Test not added ? - Automated test is not added because the indicator’s end animation cannot be captured reliably through automation. Manual verification is required to validate the final animation state <!-- Enter description of the fix in this section --> ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #38422 ### Tested the behavior in the following platforms - [x] Windows - [ ] Android - [ ] iOS - [ ] Mac | Before Issue Fix | After Issue Fix | |----------|----------| | <video src="https://github.com/user-attachments/assets/63862d31-4ebb-4535-878d-59dafeb1e7c9"> | <video src="https://github.com/user-attachments/assets/c68fbfe2-9905-4d89-a8f3-a868cfae7d36"> | <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. -->
<!-- Please keep the note below for people who find this PR --> > [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment whether this change resolves your issue. Thank you! ### Root cause : - `UpdateTabBarVisibility()` was always assigning `MauiNavigationView.PaneDisplayMode`, even when the requested value was already the current value. - Reassigning the same value unnecessarily causes the navigation view to process the pane-display-mode change again. - This interferes with the end portion of the TabBar transition animation. The start animation can be observed, but the redundant `PaneDisplayMode` update prevents the transition from completing normally. ### Description of change - Added a check in `UpdateTabBarVisibility` to compare the current `PaneDisplayMode` with the requested value before updating it. - This prevents redundant native property updates and allows the TabBar transition to complete normally, including the end animation. ### Why Test not added ? - Automated test is not added because the indicator’s end animation cannot be captured reliably through automation. Manual verification is required to validate the final animation state <!-- Enter description of the fix in this section --> ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #38422 ### Tested the behavior in the following platforms - [x] Windows - [ ] Android - [ ] iOS - [ ] Mac | Before Issue Fix | After Issue Fix | |----------|----------| | <video src="https://github.com/user-attachments/assets/63862d31-4ebb-4535-878d-59dafeb1e7c9"> | <video src="https://github.com/user-attachments/assets/c68fbfe2-9905-4d89-a8f3-a868cfae7d36"> | <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. -->
<!-- Please keep the note below for people who find this PR --> > [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment whether this change resolves your issue. Thank you! ### Root cause : - `UpdateTabBarVisibility()` was always assigning `MauiNavigationView.PaneDisplayMode`, even when the requested value was already the current value. - Reassigning the same value unnecessarily causes the navigation view to process the pane-display-mode change again. - This interferes with the end portion of the TabBar transition animation. The start animation can be observed, but the redundant `PaneDisplayMode` update prevents the transition from completing normally. ### Description of change - Added a check in `UpdateTabBarVisibility` to compare the current `PaneDisplayMode` with the requested value before updating it. - This prevents redundant native property updates and allows the TabBar transition to complete normally, including the end animation. ### Why Test not added ? - Automated test is not added because the indicator’s end animation cannot be captured reliably through automation. Manual verification is required to validate the final animation state <!-- Enter description of the fix in this section --> ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #38422 ### Tested the behavior in the following platforms - [x] Windows - [ ] Android - [ ] iOS - [ ] Mac | Before Issue Fix | After Issue Fix | |----------|----------| | <video src="https://github.com/user-attachments/assets/63862d31-4ebb-4535-878d-59dafeb1e7c9"> | <video src="https://github.com/user-attachments/assets/c68fbfe2-9905-4d89-a8f3-a868cfae7d36"> | <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. -->
<!-- Please keep the note below for people who find this PR --> > [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment whether this change resolves your issue. Thank you! ### Root cause : - `UpdateTabBarVisibility()` was always assigning `MauiNavigationView.PaneDisplayMode`, even when the requested value was already the current value. - Reassigning the same value unnecessarily causes the navigation view to process the pane-display-mode change again. - This interferes with the end portion of the TabBar transition animation. The start animation can be observed, but the redundant `PaneDisplayMode` update prevents the transition from completing normally. ### Description of change - Added a check in `UpdateTabBarVisibility` to compare the current `PaneDisplayMode` with the requested value before updating it. - This prevents redundant native property updates and allows the TabBar transition to complete normally, including the end animation. ### Why Test not added ? - Automated test is not added because the indicator’s end animation cannot be captured reliably through automation. Manual verification is required to validate the final animation state <!-- Enter description of the fix in this section --> ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #38422 ### Tested the behavior in the following platforms - [x] Windows - [ ] Android - [ ] iOS - [ ] Mac | Before Issue Fix | After Issue Fix | |----------|----------| | <video src="https://github.com/user-attachments/assets/63862d31-4ebb-4535-878d-59dafeb1e7c9"> | <video src="https://github.com/user-attachments/assets/c68fbfe2-9905-4d89-a8f3-a868cfae7d36"> | <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. -->
<!-- Please keep the note below for people who find this PR --> > [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment whether this change resolves your issue. Thank you! ### Root cause : - `UpdateTabBarVisibility()` was always assigning `MauiNavigationView.PaneDisplayMode`, even when the requested value was already the current value. - Reassigning the same value unnecessarily causes the navigation view to process the pane-display-mode change again. - This interferes with the end portion of the TabBar transition animation. The start animation can be observed, but the redundant `PaneDisplayMode` update prevents the transition from completing normally. ### Description of change - Added a check in `UpdateTabBarVisibility` to compare the current `PaneDisplayMode` with the requested value before updating it. - This prevents redundant native property updates and allows the TabBar transition to complete normally, including the end animation. ### Why Test not added ? - Automated test is not added because the indicator’s end animation cannot be captured reliably through automation. Manual verification is required to validate the final animation state <!-- Enter description of the fix in this section --> ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #38422 ### Tested the behavior in the following platforms - [x] Windows - [ ] Android - [ ] iOS - [ ] Mac | Before Issue Fix | After Issue Fix | |----------|----------| | <video src="https://github.com/user-attachments/assets/63862d31-4ebb-4535-878d-59dafeb1e7c9"> | <video src="https://github.com/user-attachments/assets/c68fbfe2-9905-4d89-a8f3-a868cfae7d36"> | <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. -->
<!-- Please keep the note below for people who find this PR --> > [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment whether this change resolves your issue. Thank you! ### Root cause : - `UpdateTabBarVisibility()` was always assigning `MauiNavigationView.PaneDisplayMode`, even when the requested value was already the current value. - Reassigning the same value unnecessarily causes the navigation view to process the pane-display-mode change again. - This interferes with the end portion of the TabBar transition animation. The start animation can be observed, but the redundant `PaneDisplayMode` update prevents the transition from completing normally. ### Description of change - Added a check in `UpdateTabBarVisibility` to compare the current `PaneDisplayMode` with the requested value before updating it. - This prevents redundant native property updates and allows the TabBar transition to complete normally, including the end animation. ### Why Test not added ? - Automated test is not added because the indicator’s end animation cannot be captured reliably through automation. Manual verification is required to validate the final animation state <!-- Enter description of the fix in this section --> ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #38422 ### Tested the behavior in the following platforms - [x] Windows - [ ] Android - [ ] iOS - [ ] Mac | Before Issue Fix | After Issue Fix | |----------|----------| | <video src="https://github.com/user-attachments/assets/63862d31-4ebb-4535-878d-59dafeb1e7c9"> | <video src="https://github.com/user-attachments/assets/c68fbfe2-9905-4d89-a8f3-a868cfae7d36"> | <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. -->
<!-- Please keep the note below for people who find this PR --> > [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment whether this change resolves your issue. Thank you! ### Root cause : - `UpdateTabBarVisibility()` was always assigning `MauiNavigationView.PaneDisplayMode`, even when the requested value was already the current value. - Reassigning the same value unnecessarily causes the navigation view to process the pane-display-mode change again. - This interferes with the end portion of the TabBar transition animation. The start animation can be observed, but the redundant `PaneDisplayMode` update prevents the transition from completing normally. ### Description of change - Added a check in `UpdateTabBarVisibility` to compare the current `PaneDisplayMode` with the requested value before updating it. - This prevents redundant native property updates and allows the TabBar transition to complete normally, including the end animation. ### Why Test not added ? - Automated test is not added because the indicator’s end animation cannot be captured reliably through automation. Manual verification is required to validate the final animation state <!-- Enter description of the fix in this section --> ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #38422 ### Tested the behavior in the following platforms - [x] Windows - [ ] Android - [ ] iOS - [ ] Mac | Before Issue Fix | After Issue Fix | |----------|----------| | <video src="https://github.com/user-attachments/assets/63862d31-4ebb-4535-878d-59dafeb1e7c9"> | <video src="https://github.com/user-attachments/assets/c68fbfe2-9905-4d89-a8f3-a868cfae7d36"> | <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. -->
<!-- Please keep the note below for people who find this PR --> > [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment whether this change resolves your issue. Thank you! ### Root cause : - `UpdateTabBarVisibility()` was always assigning `MauiNavigationView.PaneDisplayMode`, even when the requested value was already the current value. - Reassigning the same value unnecessarily causes the navigation view to process the pane-display-mode change again. - This interferes with the end portion of the TabBar transition animation. The start animation can be observed, but the redundant `PaneDisplayMode` update prevents the transition from completing normally. ### Description of change - Added a check in `UpdateTabBarVisibility` to compare the current `PaneDisplayMode` with the requested value before updating it. - This prevents redundant native property updates and allows the TabBar transition to complete normally, including the end animation. ### Why Test not added ? - Automated test is not added because the indicator’s end animation cannot be captured reliably through automation. Manual verification is required to validate the final animation state <!-- Enter description of the fix in this section --> ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #38422 ### Tested the behavior in the following platforms - [x] Windows - [ ] Android - [ ] iOS - [ ] Mac | Before Issue Fix | After Issue Fix | |----------|----------| | <video src="https://github.com/user-attachments/assets/63862d31-4ebb-4535-878d-59dafeb1e7c9"> | <video src="https://github.com/user-attachments/assets/c68fbfe2-9905-4d89-a8f3-a868cfae7d36"> | <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. -->
<!-- Please keep the note below for people who find this PR --> > [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment whether this change resolves your issue. Thank you! ### Root cause : - `UpdateTabBarVisibility()` was always assigning `MauiNavigationView.PaneDisplayMode`, even when the requested value was already the current value. - Reassigning the same value unnecessarily causes the navigation view to process the pane-display-mode change again. - This interferes with the end portion of the TabBar transition animation. The start animation can be observed, but the redundant `PaneDisplayMode` update prevents the transition from completing normally. ### Description of change - Added a check in `UpdateTabBarVisibility` to compare the current `PaneDisplayMode` with the requested value before updating it. - This prevents redundant native property updates and allows the TabBar transition to complete normally, including the end animation. ### Why Test not added ? - Automated test is not added because the indicator’s end animation cannot be captured reliably through automation. Manual verification is required to validate the final animation state <!-- Enter description of the fix in this section --> ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #38422 ### Tested the behavior in the following platforms - [x] Windows - [ ] Android - [ ] iOS - [ ] Mac | Before Issue Fix | After Issue Fix | |----------|----------| | <video src="https://github.com/user-attachments/assets/63862d31-4ebb-4535-878d-59dafeb1e7c9"> | <video src="https://github.com/user-attachments/assets/c68fbfe2-9905-4d89-a8f3-a868cfae7d36"> | <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. -->
<!-- Please keep the note below for people who find this PR --> > [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment whether this change resolves your issue. Thank you! ### Root cause : - `UpdateTabBarVisibility()` was always assigning `MauiNavigationView.PaneDisplayMode`, even when the requested value was already the current value. - Reassigning the same value unnecessarily causes the navigation view to process the pane-display-mode change again. - This interferes with the end portion of the TabBar transition animation. The start animation can be observed, but the redundant `PaneDisplayMode` update prevents the transition from completing normally. ### Description of change - Added a check in `UpdateTabBarVisibility` to compare the current `PaneDisplayMode` with the requested value before updating it. - This prevents redundant native property updates and allows the TabBar transition to complete normally, including the end animation. ### Why Test not added ? - Automated test is not added because the indicator’s end animation cannot be captured reliably through automation. Manual verification is required to validate the final animation state <!-- Enter description of the fix in this section --> ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #38422 ### Tested the behavior in the following platforms - [x] Windows - [ ] Android - [ ] iOS - [ ] Mac | Before Issue Fix | After Issue Fix | |----------|----------| | <video src="https://github.com/user-attachments/assets/63862d31-4ebb-4535-878d-59dafeb1e7c9"> | <video src="https://github.com/user-attachments/assets/c68fbfe2-9905-4d89-a8f3-a868cfae7d36"> | <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. -->
<!-- Please keep the note below for people who find this PR --> > [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment whether this change resolves your issue. Thank you! ### Root cause : - `UpdateTabBarVisibility()` was always assigning `MauiNavigationView.PaneDisplayMode`, even when the requested value was already the current value. - Reassigning the same value unnecessarily causes the navigation view to process the pane-display-mode change again. - This interferes with the end portion of the TabBar transition animation. The start animation can be observed, but the redundant `PaneDisplayMode` update prevents the transition from completing normally. ### Description of change - Added a check in `UpdateTabBarVisibility` to compare the current `PaneDisplayMode` with the requested value before updating it. - This prevents redundant native property updates and allows the TabBar transition to complete normally, including the end animation. ### Why Test not added ? - Automated test is not added because the indicator’s end animation cannot be captured reliably through automation. Manual verification is required to validate the final animation state <!-- Enter description of the fix in this section --> ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #38422 ### Tested the behavior in the following platforms - [x] Windows - [ ] Android - [ ] iOS - [ ] Mac | Before Issue Fix | After Issue Fix | |----------|----------| | <video src="https://github.com/user-attachments/assets/63862d31-4ebb-4535-878d-59dafeb1e7c9"> | <video src="https://github.com/user-attachments/assets/c68fbfe2-9905-4d89-a8f3-a868cfae7d36"> | <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. -->
<!-- Please keep the note below for people who find this PR --> > [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment whether this change resolves your issue. Thank you! ### Root cause : - `UpdateTabBarVisibility()` was always assigning `MauiNavigationView.PaneDisplayMode`, even when the requested value was already the current value. - Reassigning the same value unnecessarily causes the navigation view to process the pane-display-mode change again. - This interferes with the end portion of the TabBar transition animation. The start animation can be observed, but the redundant `PaneDisplayMode` update prevents the transition from completing normally. ### Description of change - Added a check in `UpdateTabBarVisibility` to compare the current `PaneDisplayMode` with the requested value before updating it. - This prevents redundant native property updates and allows the TabBar transition to complete normally, including the end animation. ### Why Test not added ? - Automated test is not added because the indicator’s end animation cannot be captured reliably through automation. Manual verification is required to validate the final animation state <!-- Enter description of the fix in this section --> ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #38422 ### Tested the behavior in the following platforms - [x] Windows - [ ] Android - [ ] iOS - [ ] Mac | Before Issue Fix | After Issue Fix | |----------|----------| | <video src="https://github.com/user-attachments/assets/63862d31-4ebb-4535-878d-59dafeb1e7c9"> | <video src="https://github.com/user-attachments/assets/c68fbfe2-9905-4d89-a8f3-a868cfae7d36"> | <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. -->
<!-- Please keep the note below for people who find this PR --> > [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment whether this change resolves your issue. Thank you! ### Root cause : - `UpdateTabBarVisibility()` was always assigning `MauiNavigationView.PaneDisplayMode`, even when the requested value was already the current value. - Reassigning the same value unnecessarily causes the navigation view to process the pane-display-mode change again. - This interferes with the end portion of the TabBar transition animation. The start animation can be observed, but the redundant `PaneDisplayMode` update prevents the transition from completing normally. ### Description of change - Added a check in `UpdateTabBarVisibility` to compare the current `PaneDisplayMode` with the requested value before updating it. - This prevents redundant native property updates and allows the TabBar transition to complete normally, including the end animation. ### Why Test not added ? - Automated test is not added because the indicator’s end animation cannot be captured reliably through automation. Manual verification is required to validate the final animation state <!-- Enter description of the fix in this section --> ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #38422 ### Tested the behavior in the following platforms - [x] Windows - [ ] Android - [ ] iOS - [ ] Mac | Before Issue Fix | After Issue Fix | |----------|----------| | <video src="https://github.com/user-attachments/assets/63862d31-4ebb-4535-878d-59dafeb1e7c9"> | <video src="https://github.com/user-attachments/assets/c68fbfe2-9905-4d89-a8f3-a868cfae7d36"> | <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. -->
<!-- Please keep the note below for people who find this PR --> > [!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](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment whether this change resolves your issue. Thank you! ### Root cause : - `UpdateTabBarVisibility()` was always assigning `MauiNavigationView.PaneDisplayMode`, even when the requested value was already the current value. - Reassigning the same value unnecessarily causes the navigation view to process the pane-display-mode change again. - This interferes with the end portion of the TabBar transition animation. The start animation can be observed, but the redundant `PaneDisplayMode` update prevents the transition from completing normally. ### Description of change - Added a check in `UpdateTabBarVisibility` to compare the current `PaneDisplayMode` with the requested value before updating it. - This prevents redundant native property updates and allows the TabBar transition to complete normally, including the end animation. ### Why Test not added ? - Automated test is not added because the indicator’s end animation cannot be captured reliably through automation. Manual verification is required to validate the final animation state <!-- Enter description of the fix in this section --> ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #38422 ### Tested the behavior in the following platforms - [x] Windows - [ ] Android - [ ] iOS - [ ] Mac | Before Issue Fix | After Issue Fix | |----------|----------| | <video src="https://github.com/user-attachments/assets/63862d31-4ebb-4535-878d-59dafeb1e7c9"> | <video src="https://github.com/user-attachments/assets/c68fbfe2-9905-4d89-a8f3-a868cfae7d36"> | <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. -->
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 whether this change resolves your issue. Thank you!
Root cause :
UpdateTabBarVisibility()was always assigningMauiNavigationView.PaneDisplayMode, even when the requested value was already the current value.PaneDisplayModeupdate prevents the transition from completing normally.Description of change
UpdateTabBarVisibilityto compare the currentPaneDisplayModewith the requested value before updating it.Why Test not added ?
Issues Fixed
Fixes #38422
Tested the behavior in the following platforms
BeforeFix38422.mp4
AfterFix38422.mp4