Skip to content

[Material3] Fix tab selection indicator color on theme change - #38445

Merged
kubaflo merged 5 commits into
dotnet:inflight/currentfrom
SyedAbdulAzeemSF4852:fix-38234
Sep 24, 2026
Merged

kubaflo merged 5 commits into
dotnet:inflight/currentfrom
SyedAbdulAzeemSF4852:fix-38234

Conversation

@SyedAbdulAzeemSF4852

Copy link
Copy Markdown
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 Android with Material 3 enabled, the Shell TabBar and TabbedPage selection colors do not update when the application theme changes.

Root Cause

  • On Android Material 3, TabbedPage's BottomNavigationView.ItemActiveIndicatorColor was not updated when the application theme changed, causing the tab selection indicator to retain the previous theme's color.

Description of Change

  • Added UpdateActiveIndicatorColor to BottomNavigationViewUtils to update BottomNavigationView.ItemActiveIndicatorColor based on the current application theme, ensuring the TabBar selection indicator uses the correct color after a theme change.
  • Integrated UpdateActiveIndicatorColor into ShellItemRenderer and TabbedPageManager so the TabBar selection indicator is refreshed when the appearance changes.
  • Subscribed and unsubscribed to Application.Current.RequestedThemeChanged in TabbedPageManager to refresh the TabbedPage selection indicator when the application theme changes.

Issues Fixed

Fixes #38234

Validated the behaviour in the following platforms

  • Windows
  • Android
  • iOS
  • Mac

Output

Before After
Before_Fix.mov
After_Fix.mov

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 38445

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 38445"

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service dotnet-policy-service Bot added the community ✨ Community Contribution label Sep 11, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

@kubaflo

This comment has been minimized.

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Sep 11, 2026
MauiBot

This comment was marked as outdated.

@MauiBot MauiBot added s/agent-changes-requested AI agent recommends changes - found a better alternative or issues s/agent-gate-failed AI could not verify tests catch the bug s/agent-fix-pr-picked AI could not beat the PR fix - PR is the best among all candidates s/agent-reviewed PR was reviewed by AI agent workflow (full 4-phase review) and removed s/agent-review-in-progress AI review is currently running for this PR labels Sep 11, 2026
@SyedAbdulAzeemSF4852 SyedAbdulAzeemSF4852 changed the title [WIP][Material3] Fix tab selection indicator color on theme change [Material3] Fix tab selection indicator color on theme change Sep 18, 2026
@kubaflo

This comment has been minimized.

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Sep 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Note

🔍 /review started

AzDO build 15379536 is running for android.

The s/agent-review-in-progress label stays on this PR while the run is active. The final recommendation and outcome labels are posted only after Gate, expert review, and Deep UI tests finish.

@kubaflo

This comment has been minimized.

Copilot AI review requested due to automatic review settings September 24, 2026 11:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

Bidirectional theme-transition coverage remains incomplete, warranting final human review.

Review effort: Lite
Findings: None

Resolved since last review (1)

@kubaflo

This comment has been minimized.

@kubaflo

kubaflo commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

/azp run

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Sep 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Note

🔍 /review started

AzDO build 15445850 is running for android.

The s/agent-review-in-progress label stays on this PR while the run is active. The final recommendation and outcome labels are posted only after Gate, expert review, and Deep UI tests finish.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).

@kubaflo

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

Tests Failure Analysis

@SyedAbdulAzeemSF4852 — test-failure analysis for commit a643aba.

Scope CI failures Commit a643aba


🧪 CI Analysis — click to expand
📊 maui-pr

No failures found.


🧪 maui-pr-devicetests

No failures found.


🧪 maui-pr-uitests

🧭 Follow-up — actions and refresh

Next action: Inspect or rerun the affected SafeArea, API 30 Controls, and macOS Label shards to resolve the unmatched diagnostics.

Maintainers: comment /review tests to refresh this report.

@MauiBot MauiBot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Expert Review — 2 findings

See inline comments for details.

configuration.UiMode = (configuration.UiMode & ~UiMode.NightMask) | (requestedTheme == AppTheme.Dark ? UiMode.NightYes : UiMode.NightNo);

using var configuredContext = context.CreateConfigurationContext(configuration);
configuredContext.SetTheme(Resource.Style.Maui_Material3_Theme_NoActionBar);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🔍 AI-Generated Review (multi-model)

❌ Error — [major] Native Platform Defaults Preservation GetThemeAttrColor forcibly applies Maui_Material3_Theme_NoActionBar before reading colorSecondaryContainer, which discards app-provided Material3 palette overrides. Concrete scenario: apps that customize colorSecondaryContainer in their Android theme will see the active indicator snap back to MAUI default colors after a theme change instead of preserving their themed value.

App.Tap("SwitchToDarkThemeButton");
App.WaitForElement("Dark theme active");

VerifyScreenshot();

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🔍 AI-Generated Review (multi-model)

⚠️ Warning — [critical] Regression Prevention and Test Coverage The screenshot assertion runs immediately after toggling theme (VerifyScreenshot() with no retry window), which can capture pre-redraw frames on Android and produce flaky pass/fail outcomes. Use VerifyScreenshot(retryTimeout: ...) (same issue also applies to Issue38234_TabbedPageTest.cs) so the test waits for the visual state it is validating.

@MauiBot MauiBot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

AI Review Summary

@SyedAbdulAzeemSF4852 — new AI review results are available based on commit a643aba.

Gate Failed Confidence Low Platform Android


🗂️ Review Sessions — click to expand
🚦 Gate — Test Before & After Fix

Gate Result: ❌ FAILED

Platform: ANDROID · Base: main · Merge base: 828569a8

🩺 Fix does not pass the tests — every test still fails after applying the fix. The PR's change does not resolve the failure(s).

Test Without Fix (expect FAIL) With Fix (expect PASS)
🖥️ Issue38234 Issue38234 ✅ FAIL — 2618s ❌ FAIL — 1838s
🖥️ Issue38234_TabbedPageTest Issue38234_TabbedPageTest ✅ FAIL — 611s ❌ FAIL — 1789s
🔴 Without fix — 🖥️ Issue38234: FAIL ✅ · 2618s

Error-relevant lines (filtered from the build log):

/home/vsts/work/1/s/.dotnet/packs/Microsoft.Android.Sdk.Linux/36.1.115/tools/Xamarin.Android.Common.Debugging.targets(333,5): error ADB0010:    at Mono.AndroidTools.AndroidDevice.<>c__DisplayClass105_0.<InstallPackage>b__0(Task`1 t) [/home/vsts/work/1/s/src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj::TargetFramework=net10.0-android]
/home/vsts/work/1/s/.dotnet/packs/Microsoft.Android.Sdk.Linux/36.1.115/tools/Xamarin.Android.Common.Debugging.targets(333,5): error ADB0010:    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) [/home/vsts/work/1/s/src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj::TargetFramework=net10.0-android]
/home/vsts/work/1/s/.dotnet/packs/Microsoft.Android.Sdk.Linux/36.1.115/tools/Xamarin.Android.Common.Debugging.targets(333,5): error ADB0010: --- End of stack trace from previous location --- [/home/vsts/work/1/s/src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj::TargetFramework=net10.0-android]
/home/vsts/work/1/s/.dotnet/packs/Microsoft.Android.Sdk.Linux/36.1.115/tools/Xamarin.Android.Common.Debugging.targets(333,5): error ADB0010:    at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) [/home/vsts/work/1/s/src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj::TargetFramework=net10.0-android]
/home/vsts/work/1/s/.dotnet/packs/Microsoft.Android.Sdk.Linux/36.1.115/tools/Xamarin.Android.Common.Debugging.targets(333,5): error ADB0010:    at AndroidDeviceExtensions.PushAndInstallPackageAsync(AndroidDevice device, PushAndInstallCommand command, CancellationToken token) [/home/vsts/work/1/s/src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj::TargetFramework=net10.0-android]
/home/vsts/work/1/s/.dotnet/packs/Microsoft.Android.Sdk.Linux/36.1.115/tools/Xamarin.Android.Common.Debugging.targets(333,5): error ADB0010:    at Xamarin.Android.Tasks.FastDeploy.InstallPackage(Boolean installed) [/home/vsts/work/1/s/src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj::TargetFramework=net10.0-android]
/home/vsts/work/1/s/.dotnet/packs/Microsoft.Android.Sdk.Linux/36.1.115/tools/Xamarin.Android.Common.Debugging.targets(333,5): error ADB0010:    at Xamarin.Android.Tasks.FastDeploy.RunInstall() [/home/vsts/work/1/s/src/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj::TargetFramework=net10.0-android]
Build FAILED.
     at VisualTestUtils.VisualRegressionTester.Fail(String message) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 162
   at VisualTestUtils.VisualRegressionTester.VerifyMatchesSnapshot(String name, ImageSnapshot actualImage, String environmentName, ITestContext testContext) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 84
   at Microsoft.Maui.TestCases.Tests.UITest.<VerifyScreenshot>g__Verify|13_0(String name, <>c__DisplayClass13_0&) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 480
   at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 retryDelay, Nullable`1 retryTimeout, Int32 cropLeft, Int32 cropRight, Int32 cropTop, Int32 cropBottom, Double tolerance) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 312
   at Microsoft.Maui.TestCases.Tests.Issues.Issue38234_TabbedPageTest.TabbedPageSelectionColorUpdatesAfterThemeChange() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue38234_TabbedPageTest.cs:line 24
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
   at Microsoft.Maui.TestCases.Tests.Issues.Issue38234.ShellTabBarSelectionColorUpdatesAfterThemeChange() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue38234.cs:line 24
🟢 With fix — 🖥️ Issue38234: FAIL ❌ · 1838s

Error-relevant lines (filtered from the build log):

     at VisualTestUtils.VisualRegressionTester.Fail(String message) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 162
   at VisualTestUtils.VisualRegressionTester.VerifyMatchesSnapshot(String name, ImageSnapshot actualImage, String environmentName, ITestContext testContext) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 84
   at Microsoft.Maui.TestCases.Tests.UITest.<VerifyScreenshot>g__Verify|13_0(String name, <>c__DisplayClass13_0&) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 480
   at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 retryDelay, Nullable`1 retryTimeout, Int32 cropLeft, Int32 cropRight, Int32 cropTop, Int32 cropBottom, Double tolerance) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 312
   at Microsoft.Maui.TestCases.Tests.Issues.Issue38234_TabbedPageTest.TabbedPageSelectionColorUpdatesAfterThemeChange() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue38234_TabbedPageTest.cs:line 24
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
   at Microsoft.Maui.TestCases.Tests.Issues.Issue38234.ShellTabBarSelectionColorUpdatesAfterThemeChange() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue38234.cs:line 24
🔴 Without fix — 🖥️ Issue38234_TabbedPageTest: FAIL ✅ · 611s

Error-relevant lines (filtered from the build log):

     at VisualTestUtils.VisualRegressionTester.Fail(String message) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 162
   at VisualTestUtils.VisualRegressionTester.VerifyMatchesSnapshot(String name, ImageSnapshot actualImage, String environmentName, ITestContext testContext) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 84
   at Microsoft.Maui.TestCases.Tests.UITest.<VerifyScreenshot>g__Verify|13_0(String name, <>c__DisplayClass13_0&) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 480
   at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 retryDelay, Nullable`1 retryTimeout, Int32 cropLeft, Int32 cropRight, Int32 cropTop, Int32 cropBottom, Double tolerance) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 312
   at Microsoft.Maui.TestCases.Tests.Issues.Issue38234_TabbedPageTest.TabbedPageSelectionColorUpdatesAfterThemeChange() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue38234_TabbedPageTest.cs:line 24
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
🟢 With fix — 🖥️ Issue38234_TabbedPageTest: FAIL ❌ · 1789s

Error-relevant lines (filtered from the build log):

     at VisualTestUtils.VisualRegressionTester.Fail(String message) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 162
   at VisualTestUtils.VisualRegressionTester.VerifyMatchesSnapshot(String name, ImageSnapshot actualImage, String environmentName, ITestContext testContext) in /_/src/TestUtils/src/VisualTestUtils/VisualRegressionTester.cs:line 84
   at Microsoft.Maui.TestCases.Tests.UITest.<VerifyScreenshot>g__Verify|13_0(String name, <>c__DisplayClass13_0&) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 480
   at Microsoft.Maui.TestCases.Tests.UITest.VerifyScreenshot(String name, Nullable`1 retryDelay, Nullable`1 retryTimeout, Int32 cropLeft, Int32 cropRight, Int32 cropTop, Int32 cropBottom, Double tolerance) in /_/src/Controls/tests/TestCases.Shared.Tests/UITest.cs:line 312
   at Microsoft.Maui.TestCases.Tests.Issues.Issue38234_TabbedPageTest.TabbedPageSelectionColorUpdatesAfterThemeChange() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue38234_TabbedPageTest.cs:line 24
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

⚠️ Failure Details

  • ❌ Issue38234 FAILED with fix (should pass)
    • TabbedPageSelectionColorUpdatesAfterThemeChange [6 s]; ShellTabBarSelectionColorUpdatesAfterThemeChange [6 s]
    • VisualTestUtils.VisualTestFailedException : Baseline snapshot not yet created: /home/vsts/work/1/s/artifacts/bin/Controls.TestCases.Android.Tests/Debug/net10.0/snapshots/android/TabbedPageSelectionCo...; VisualTestUtils.VisualTestFailedException : Baseline snapshot not yet created: /home/vsts/work...
  • ❌ Issue38234_TabbedPageTest FAILED with fix (should pass)
    • TabbedPageSelectionColorUpdatesAfterThemeChange [6 s]
    • VisualTestUtils.VisualTestFailedException : Baseline snapshot not yet created: /home/vsts/work/1/s/artifacts/bin/Controls.TestCases.Android.Tests/Debug/net10.0/snapshots/android/TabbedPageSelectionCo...
📁 Fix files reverted (3 files)
  • src/Controls/src/Core/Compatibility/Handlers/Shell/Android/ShellItemRenderer.cs
  • src/Controls/src/Core/Platform/Android/BottomNavigationViewUtils.cs
  • src/Controls/src/Core/Platform/Android/TabbedPageManager.cs

📋 Pre-Flight — Context & Validation

PR #38445 Pre-Flight

Context

  • PR: [Material3] Fix tab selection indicator color on theme change
  • Issue: #38234, Android Material 3 Shell TabBar selection color does not update when AppTheme changes.
  • Scope: Android only; the issue is reported with <UseMaterial3> enabled.
  • Base / head: main / fix-38234; locally materialized as commit 77b8507c7a947a070c5cde80d902092a68c8db2b.
  • Merge base used by the gate: 828569a86489228dc66a7867173635a6fb4f27be.

Existing PR Approach

The PR treats the stale Material 3 active-indicator tint as an explicit refresh problem:

  1. BottomNavigationViewUtils.UpdateActiveIndicatorColor resolves
    colorSecondaryContainer from a configuration context forced to
    Application.Current.RequestedTheme, then assigns
    BottomNavigationView.ItemActiveIndicatorColor.
  2. ShellItemRenderer.IAppearanceObserver.OnAppearanceChanged calls the helper.
  3. TabbedPageManager calls the helper when creating the bottom navigation view,
    subscribes to Application.Current.RequestedThemeChanged, refreshes from that
    event, and unsubscribes during teardown.

This approach must not be repeated by an alternative candidate merely at another
call site. Each candidate needs a different root-cause hypothesis and mechanism.

Changed Files

Production files (the complete try-fix modification allow-list):

  • src/Controls/src/Core/Compatibility/Handlers/Shell/Android/ShellItemRenderer.cs
  • src/Controls/src/Core/Platform/Android/BottomNavigationViewUtils.cs
  • src/Controls/src/Core/Platform/Android/TabbedPageManager.cs

The PR also adds two HostApp pages, two Android-only Material3 UI test fixtures,
and two visual snapshots. Those additions are test evidence and are read-only
during try-fix attempts.

Gate Evidence

The already-completed gate failed:

  • Issue38234 failed without and with the PR fix.
  • Issue38234_TabbedPageTest failed without and with the PR fix.
  • Both failures with the fix are VisualTestFailedException reports saying the
    baseline snapshot was not found under the runtime snapshots/android/ path.
  • The committed snapshots are under
    src/Controls/tests/TestCases.Android.Tests/snapshots/android-notch-36/.

This snapshot-environment mismatch makes the gate result inconclusive about the
rendered color and may prevent a candidate from earning Pass even if its
product behavior is correct. Do not edit tests or snapshots to work around it;
record an honest Fail or Blocked with the exact evidence if validation cannot
reach a behavioral comparison.

Do not re-run the gate and do not create or overwrite gate/content.md.

Bounded Validation

Platform: android.

Primary test:

pwsh .github/scripts/BuildAndRunHostApp.ps1 -Platform android -TestFilter "Issue38234"

Mandatory regression test:

pwsh .github/scripts/BuildAndRunHostApp.ps1 -Platform android -TestFilter "Issue38234_TabbedPageTest"

Run only these tests. Treat both commands together as one validation pass. One
focused code correction and one repeat of the affected command(s) is the maximum;
never run a full suite.

Constraints and Prior Evidence

  • The regression cross-reference is CLEAN: no removed line overlaps a recent
    labeled bug-fix PR touching these files.
  • Detected UI category: Material3.
  • Follow .github/instructions/android.instructions.md,
    .github/instructions/threading-async.instructions.md, and the activation
    guidance in .github/instructions/public-api.instructions.md; this diff does
    not intentionally add public API.
  • Follow the try-fix skill's baseline boundary and restore protocol exactly.
  • Perform the expert self-review inline; do not launch any reviewer agent.

🔬 Code Review — Deep Analysis

Expert Evaluation — Raw PR Fix

Verdict: NEEDS_CHANGES
Confidence: low

Independent assessment

The PR addresses the correct Android Material 3 surfaces: Shell refreshes the
active-indicator tint from its appearance callback, while TabbedPageManager
refreshes it during creation and on RequestedThemeChanged. The
TabbedPageManager subscription is paired with teardown in SetElement(null),
and the new platform-view writes occur on the existing UI callback paths.

Actionable findings

  1. ❌ Preserve the effective application palette.
    BottomNavigationViewUtils.GetThemeAttrColor applies
    Maui_Material3_Theme_NoActionBar to a configuration context before resolving
    colorSecondaryContainer. That replaces app-provided Material 3 theme
    overrides with MAUI's default palette during the refresh. An app that
    customizes colorSecondaryContainer can therefore get the correct initial
    indicator color but have it snap to a MAUI default after a theme change.
  2. ⚠️ Give both visual assertions a bounded retry window.
    The Shell and TabbedPage tests call VerifyScreenshot() immediately after
    changing the requested theme. Android theme propagation and redraw can lag
    the input action, so a no-retry capture can observe the prior frame. Both
    tests should use the repository's bounded retryTimeout overload.

The raw file-and-line findings are recorded in
../inline-findings.json.

Blast radius and failure modes

  • The production change is Android-only but affects every Material 3 Shell
    bottom tab and bottom-positioned TabbedPage when appearance/theme callbacks
    run.
  • No new static state is introduced.
  • TabbedPageManager removes the application theme subscription before
    detaching the old element, preventing ordinary reconnect cycles from
    accumulating handlers.
  • The helper guards null application/context/platform-view inputs and returns
    when Material 3 is disabled.
  • The palette override above is a concrete adjacent-app regression; visual
    validation is additionally inconclusive because the completed gate searched
    snapshots/android/ while the submitted baselines are under
    snapshots/android-notch-36/.

Recommended consolidated refinement

Resolve colorSecondaryContainer from a theme context that retains the host
application's effective Material 3 style while applying the requested
day/night configuration, and add a bounded screenshot retry to both tests.
Validate only Issue38234 and Issue38234_TabbedPageTest once in the required
candidate sandbox.

External Output Contract

Not applicable.


🛠️ Try-Fix — Analysis & Comparison

Try-Fix Aggregate

Candidate 1 — Recreate the Native Bottom Navigation Control

Result: Fail
Model: gpt-5.3-codex
Self-review: 0 findings
Detailed record: ../try-fix-1/content.md
Raw artifacts: attempt-1/

Candidate 1 rejected the PR's one-property refresh hypothesis. It treated the
root cause as stale themed internals in an already-instantiated Material
BottomNavigationView and recreated the control after a runtime night/day mode
change. The prototype changed ShellItemRenderer.cs (+60/-0) and
TabbedPageManager.cs (+73/-0), rebuilding menus, selection state, styling, and
listeners after replacing the native view.

Both bounded Android validations executed:

  1. Issue38234 reached VerifyScreenshot for both Shell and TabbedPage, then
    failed because the runtime could not find either image under
    snapshots/android/.
  2. Issue38234_TabbedPageTest reached VerifyScreenshot, then failed for the
    same missing snapshots/android/ baseline.

The committed baselines are under snapshots/android-notch-36/; therefore the
test runs could not compare rendered output and neither validate nor disprove
the candidate. No correction was attempted because changing snapshot selection
is outside the three-file production allow-list. The captured result is
honestly Fail, not Pass.

The complete implementation diff is embedded in the detailed candidate record
and saved as attempt-1/fix.diff. Inline expert self-review was clean
(reviewer-findings.json is []). Restoration completed with Restored True.

Candidate 2 — Theme-Aware Stateful Indicator Color

Result: Fail
Model: gpt-5.6-sol
Self-review: 0 findings
Detailed record: ../try-fix-2/content.md
Raw artifacts: attempt-2/

Candidate 2 avoided both earlier mechanisms. It did not recompute and replace
ItemActiveIndicatorColor after each theme event, and it did not recreate the
native control. Instead, it assigned one ColorStateList containing precomputed
light and dark Material 3 colorSecondaryContainer values during control
creation, then toggled the retained indicator drawable's activated state after
a theme notification. This tested the hypothesis that the indicator's original
color list lacks a theme-state dimension.

The prototype changed all three allowed production files:

  • ShellItemRenderer.cs (+2/-0)
  • BottomNavigationViewUtils.cs (+74/-0)
  • TabbedPageManager.cs (+12/-0)

Both bounded Android validations executed:

  1. Issue38234 built, deployed, and ran two tests; both reached
    VerifyScreenshot and failed because the runtime could not find the
    baselines under snapshots/android/.
  2. Issue38234_TabbedPageTest built, deployed, and ran one test; it reached
    VerifyScreenshot and failed for the same missing baseline.

The committed baselines remain under snapshots/android-notch-36/; therefore
the test runs could not compare rendered output and neither validate nor
disprove the candidate. No correction was attempted because snapshot selection
is outside the production-file allow-list. The captured result is honestly
Fail, not Pass.

The complete implementation diff is embedded in the detailed candidate record
and saved as attempt-2/fix.diff. The artifact gate passed, inline expert
self-review was clean (reviewer-findings.json is []), and restoration
completed with Restored True.

Aggregate Outcome

Two candidates were attempted, which is the configured maximum. Both exercised
distinct mechanisms and both completed the required Shell plus TabbedPage test
commands. Neither candidate can be recommended as validated because the visual
test environment selected android while the PR supplies only
android-notch-36 snapshots. STEP 5b should treat both as unverified failed
experiments, not as evidence that either mechanism renders the wrong color.


📝 PR Finalize — Recommended Title & Description

Assessment: ✏️ Recommend updating — the current description is strong, but the title lacks the Android platform prefix and the root-cause section describes only TabbedPage even though the submitted fix covers both Shell and TabbedPage.

Recommended title

[Android] Material 3 tabs: Update active indicator color on theme change

Recommended description

### Issue Details
- On Android with Material 3 enabled, the Shell TabBar and bottom-positioned TabbedPage active selection indicators do not update when the application theme changes.

### Root Cause
- Android Material 3 `BottomNavigationView.ItemActiveIndicatorColor` retained the theme-derived color from the native control's creation. The Shell and TabbedPage appearance paths did not refresh that property after an application theme change.

### Description of Change
- Added `BottomNavigationViewUtils.UpdateActiveIndicatorColor` to resolve `colorSecondaryContainer` for `Application.Current.RequestedTheme` and update `BottomNavigationView.ItemActiveIndicatorColor`.
- Integrated `UpdateActiveIndicatorColor` into `ShellItemRenderer` so the Shell TabBar active indicator refreshes when its appearance changes.
- Integrated `UpdateActiveIndicatorColor` into `TabbedPageManager` during bottom-navigation creation and on `Application.Current.RequestedThemeChanged`, with matching subscription cleanup when the element is detached.
- Added Android Material 3 UI coverage and visual snapshots for both the Shell TabBar and TabbedPage theme-change scenarios.

### Issues Fixed
Fixes #38234

### Validated the behaviour in the following platforms
- [ ] Windows
- [x] Android
- [ ] iOS
- [ ] Mac

### Output
| Before | After |
|----------|----------|
| <video src="https://github.com/user-attachments/assets/297ade85-9f14-4e31-9fb6-bc59cc8bce6f"> | <video src="https://github.com/user-attachments/assets/f0f82993-dc89-4dbd-bdc4-e0aeb89cd820"> |

🏁 Report — Final Recommendation

⚠️ Final Recommendation: REQUEST CHANGES

Winner: pr-plus-reviewer

The reviewer-enhanced PR is the strongest candidate because it keeps the raw
PR's localized refresh mechanism and lifecycle symmetry while fixing the
expert review's concrete palette regression: the requested-configuration
context now inherits the application's effective theme stack instead of
forcing MAUI's default Material 3 theme. It also makes both theme-transition
visual assertions resilient to delayed Android redraws.

Validation constraint

No candidate passed the mandatory regression command. The raw PR gate,
try-fix-1, try-fix-2, and pr-plus-reviewer all built/deployed far enough
to reach VerifyScreenshot, then failed because the runtime selected
snapshots/android/ while the committed baselines are in
snapshots/android-notch-36/. Per the ranking rule, a passing candidate would
outrank every candidate here; none exists. These are recorded as failures, not
as passes or proof of incorrect rendering.

Comparative ranking

Rank Candidate Required validation Assessment
1 pr-plus-reviewer Fail: 2/2 Issue38234 tests and 1/1 Issue38234_TabbedPageTest test stopped at missing snapshots/android/ baselines; both builds succeeded with 0 warnings/errors. Best implementation. Preserves custom Material 3 palette overrides and adds bounded screenshot retries without broadening the runtime mechanism.
2 pr Gate failed: the same visual-baseline lookup prevented comparison with the fix. Directionally correct and localized, with symmetric TabbedPageManager subscription cleanup, but forcing Maui_Material3_Theme_NoActionBar can replace an app's customized colorSecondaryContainer; immediate screenshots are also timing-sensitive.
3 try-fix-1 Fail: Shell and TabbedPage filters reached screenshot verification, then hit the same missing baselines. Recreating each native BottomNavigationView may refresh all themed state, but it is substantially broader than the one-property defect and introduces menu/listener/state restoration and disposal risk.
4 try-fix-2 Fail: Shell and TabbedPage filters reached screenshot verification, then hit the same missing baselines. Avoids control recreation, but depends on manually driving internal active-indicator view state, precomputes both palettes with the same forced MAUI theme problem, and is more coupled to Material internals than direct property refresh.

Expert review disposition

  • ❌ Resolved in winner: Preserve the effective application Material 3
    palette when resolving colorSecondaryContainer for the requested theme.
  • ⚠️ Resolved in winner: Use a bounded screenshot retry for both Shell and
    TabbedPage theme transitions.
  • Remaining uncertainty: The environment-specific snapshot mismatch
    prevents behavioral pixel comparison. The trusted gate does not permit
    approval, and the submitted PR does not yet contain the winning refinement.

The raw PR therefore needs the pr-plus-reviewer/reviewer.patch changes before
merge, followed by CI in an environment that selects the committed snapshot
variant.


📱 UI Tests — Material3

Detected UI test categories: Material3

❌ Deep UI tests — 11 passed, 29 failed, 3 skipped across 1 category on platform-pool agent (replaces in-process counts above). 365 new snapshot tests need a baseline PNG (added separately by a maintainer — not a regression).

🧪 UI Test Execution Results (deep, platform pool)

Category Tests Snapshot diffs
Material3 11/408 (29 ❌, 365 ⚠ new baseline, 3 skipped) —
🔍 AI analysis of failures — PR-related vs unrelated

🔍 AI-generated triage (GitHub Copilot CLI) — a heuristic judgement of whether each deep UI test failure is connected to this PR's changes. Verify before relying on it.

Likely unrelated: the failures appear pre-existing, flaky, or infrastructure.

  • ● Unrelated — Missing Android Material3 snapshot baselines (390+ tests): the run reports absent baselines across Entry, Button, Slider, Label, Image, and other controls untouched by the PR's narrowly scoped Shell/TabbedPage active-indicator changes.
  • ● Unrelated — Appium element-wait timeouts (a few tests): the Material3TimePicker_SetTimeAndIsVisible_VerifyVisualState timeout is a known nondeterministic UI-test pattern in an unrelated control, with no stack path through the modified tab-navigation code.

Strongest signal: the dominant failures say the baseline was never present rather than reporting a changed rendering, and they span Material3 controls outside this PR's area.

❌ Material3 — 29 failed tests
Material3TimePicker_SetTimeAndIsVisible_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
   at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetTimeAndIsVisible_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 262
   at System.RuntimeMethodHandle.InvokeMeth
...
Material3TimePicker_SetFormat_T_WithFontFamily_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
   at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetFormat_T_WithFontFamily_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 342
   at System.RuntimeMethodHandle.Inv
...
Material3TimePicker_SetFontAttributesNone_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
   at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetFontAttributesNone_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 586
   at System.RuntimeMethodHandle.InvokeMe
...
Material3TimePicker_SetTimeAndCharacterSpacing_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
   at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetTimeAndCharacterSpacing_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 77
   at System.RuntimeMethodHandle.Invo
...
Material3TimePicker_OldTimeAndNewTime_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, IQuery query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 958
   at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_OldTimeAndNewTime_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 58
   at System.RuntimeMethodHandle.InvokeMethod(O
...
Material3TimePicker_SetCulture_enUS_VerifyTimeFormat
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
   at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetCulture_enUS_VerifyTimeFormat() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 383
   at System.RuntimeMethodHandle.InvokeMethod(Ob
...
Material3TimePicker_SetFontSizeAndFormat_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
   at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetFontSizeAndFormat_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 225
   at System.RuntimeMethodHandle.InvokeMet
...
Material3TimePicker_SetFormat_T_WithFontAttributes_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
   at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetFormat_T_WithFontAttributes_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 323
   at System.RuntimeMethodHandle
...
Material3TimePicker_SetCulture_jaJP_VerifyTimeFormat
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
   at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetCulture_jaJP_VerifyTimeFormat() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 424
   at System.RuntimeMethodHandle.InvokeMethod(Ob
...
Material3TimePicker_DisableFontAutoScaling_UpdatesBoundProperty
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
   at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_DisableFontAutoScaling_UpdatesBoundProperty() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 485
   at System.RuntimeMethodHandle.Invo
...
Material3TimePicker_SetFontFamilyAndFontSize_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
   at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetFontFamilyAndFontSize_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 182
   at System.RuntimeMethodHandle.Invok
...
Material3TimePicker_ModifyOldTimeAndNewTime_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
   at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_ModifyOldTimeAndNewTime_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 39
   at System.RuntimeMethodHandle.InvokeM
...
Material3TimePicker_SetShadow_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
   at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetShadow_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 275
   at System.RuntimeMethodHandle.InvokeMethod(ObjectH
...
Material3TimePicker_IsOpenAndEvents_StaySynchronized
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
   at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_IsOpenAndEvents_StaySynchronized() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 510
   at System.RuntimeMethodHandle.InvokeMethod(Ob
...
Material3TimePicker_SetFontAttributesAndFontFamily_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
   at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetFontAttributesAndFontFamily_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 123
   at System.RuntimeMethodHandle
...
Material3TimePicker_SetFontAttributesAndFormat_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
   at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetFontAttributesAndFormat_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 156
   at System.RuntimeMethodHandle.Inv
...
Material3TimePicker_SetTimeAndTextColorRed_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
   at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetTimeAndTextColorRed_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 558
   at System.RuntimeMethodHandle.InvokeM
...
Material3TimePicker_SetFormat_T_WithFontSize_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
   at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetFormat_T_WithFontSize_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 361
   at System.RuntimeMethodHandle.Invok
...
Material3TimePicker_SetFormat_t_AndTime_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
   at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetFormat_t_AndTime_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 289
   at System.RuntimeMethodHandle.InvokeMeth
...
Material3TimePicker_SetTimeAndTextColor_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
   at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetTimeAndTextColor_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 109
   at System.RuntimeMethodHandle.InvokeMeth
...
Material3TimePicker_SetFontAttributesBold_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
   at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetFontAttributesBold_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 572
   at System.RuntimeMethodHandle.InvokeMe
...
Material3TimePicker_SetTimeAndIsEnabled_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
   at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetTimeAndIsEnabled_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 247
   at System.RuntimeMethodHandle.InvokeMeth
...
Material3TimePicker_SetFontFamilyAndFormat_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
   at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetFontFamilyAndFormat_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 199
   at System.RuntimeMethodHandle.InvokeM
...
Material3TimePicker_SetCulture_arEG_VerifyTimeFormat
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
   at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetCulture_arEG_VerifyTimeFormat() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 403
   at System.RuntimeMethodHandle.InvokeMethod(Ob
...
Material3TimePicker_SetFontFamilyMontserratBold_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
   at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetFontFamilyMontserratBold_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 607
   at System.RuntimeMethodHandle.In
...
Material3TimePicker_ClearTime_UpdatesNullableTimeAndEventArgs
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
   at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_ClearTime_UpdatesNullableTimeAndEventArgs() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 445
   at System.RuntimeMethodHandle.Invoke
...
Material3TimePicker_SetFontAttributesAndFontSize_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
   at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetFontAttributesAndFontSize_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 139
   at System.RuntimeMethodHandle.I
...
Material3TimePicker_ClearTimeThenSetTime_RoundTripsNullableTime
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
   at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_ClearTimeThenSetTime_RoundTripsNullableTime() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 464
   at System.RuntimeMethodHandle.Invo
...
Material3TimePicker_SetFormatTAndTime_VerifyVisualState
System.TimeoutException : Timed out waiting for element...
at UITest.Appium.HelperExtensions.Wait(Func`1 query, Func`2 satisfactory, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2790
   at UITest.Appium.HelperExtensions.WaitForAtLeastOne(Func`1 query, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 2817
   at UITest.Appium.HelperExtensions.WaitForElement(IApp app, String marked, String timeoutMessage, Nullable`1 timeout, Nullable`1 retryFrequency, Nullable`1 postTimeout) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 826
   at Microsoft.Maui.TestCases.Tests.Material3TimePickerFeatureTests.Material3TimePicker_SetFormatTAndTime_VerifyVisualState() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/FeatureMatrix/Material3TimePickerFeatureTests.cs:line 306
   at System.RuntimeMethodHandle.InvokeMethod
...
⚠️ Material3 — 365 new snapshot tests need a baseline PNG

These tests call VerifyScreenshot but their baseline image isn't committed yet (brand-new snapshot tests get their baseline added separately by a maintainer). There's nothing to compare against, so this is not a regression — download the drop-deep-uitests artifact, confirm the rendering, and commit the baseline PNG.

  • Material3Entry_HorizontalAlignmentWithCharacterSpacing_VerifyVisualState
  • VerifyMaterial3Button_PaddingAndText
  • Material3Slider_SetThumbAndBackgroundColor_VerifyVisualState
  • Material3Label_VerifyLabelWithBackgroundColorLightBlue
  • Material3Slider_SetMinTrackAndBackgroundColor_VerifyVisualState
  • Material3Slider_SetIsVisibleAndMaxTrackColor_VerifyVisualState
  • VerifyMaterial3ImageWithBackgroundColorYellow
  • SearchBar_Material3_SetCancelButtonAndTextColor_VerifyVisualState
  • Material3DatePicker_SetFontAttributesAndFontSize_VerifyVisualState
  • Material3Switch_InitialState_VerifyVisualState
  • SearchBar_Material3_SetFontAttributesAndTextTransform_VerifyVisualState
  • Material3RadioButton_SetContentAndCharacterSpacing_VerifyVisualState
  • Material3Label_VerifyLabelWithFontFamilyAndFontColor
  • Material3Slider_SetIsEnableAndBackgroundColor_VerifyVisualState
  • Material3ProgressBar_ToggleShadow_VerifyVisualState
  • Material3Entry_FontFamily_VerifyVisualState
  • Material3Entry_PlaceholderWithFontFamily_VerifyVisualState
  • VerifyMaterial3Button_ContentLayoutWithRightToLeftFlowDirection
  • Material3Editor_VerifyEditorPlaceholderWithFontFamily
  • VerifyMaterial3Button_WidthRequest
  • Material3Slider_SetMaxTrackAndBackgroundColor_VerifyVisualState
  • Material3Entry_PlaceholderWithPasswordTrue_VerifyVisualState
  • VerifyMaterial3ImageAspect_FillWithFileSource
  • Material3DatePicker_OldDateAndNewDate_VerifyVisualState
  • Material3Slider_SetThumbColorAndThumbImageSource_VerifyVisualState
  • Material3Label_VerifyLabelWithTextAndFontFamily
  • Material3Slider_SetValueAndMinTrackColor_VerifyVisualState
  • Material3Label_VerifyLabelWithFontAttributesAndFontFamily
  • VerifyMaterial3ImageAspect_FillWithFontImageSource
  • VerifyMaterial3ImageButtonWithPadding
    (+335 more — see TRX in artifact)

📎 Download drop-deep-uitests artifact (TRX + snapshot diffs)


🧭 Next Steps — reviewer changes required

The reviewer-enhanced candidate identified changes that are not yet in the submitted PR.

Why: The reviewer-enhanced PR retains the submitted fix's narrow update path while preserving app-specific Material 3 palette overrides and making both visual tests resilient to redraw timing. All candidates failed at the same missing snapshot-environment boundary, so none obtained a passing regression result; pr-plus-reviewer wins on code correctness and lower risk.

Address the actionable findings in this review before merging.

@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Sep 24, 2026
@kubaflo
kubaflo changed the base branch from main to inflight/current September 24, 2026 18:11
Preserve Material 3 active indicator theme updates alongside upstream menu generation guards, native registration teardown, and themed background handling.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@kubaflo

kubaflo commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Resolved the conflicts with inflight/current (502b63e5808dda9b587ecf981d77b71aa0c7429b) and pushed ordinary merge commit b1c4051 to the original fix-38234 branch. No rebase or history rewrite.

The resolution preserves both sides:

  • The PR’s active-indicator theme refresh and RequestedThemeChanged subscription/unsubscription.
  • Upstream menu-generation guards, native tab-registration cleanup, and More-dialog teardown.
  • Upstream Material 3 styled bottom-navigation construction and original-background capture, followed by the indicator refresh.

Validation: build tasks and the net10.0-android36.0 Controls build with UseMaterial3=true and public API validation both succeeded with zero warnings/errors. Formatting completed; the worktree is clean. Existing UI tests and screenshot baselines are unchanged; I did not run the emulator screenshot tests locally.

GitHub now reports no merge conflicts. New-head CI is pending. This update is limited to conflict resolution: the indicator color-selection logic is unchanged, so the existing custom-theme review concern is not addressed by this merge.

@kubaflo
kubaflo merged commit 54b37b9 into dotnet:inflight/current Sep 24, 2026
2 of 12 checks passed
@github-actions github-actions Bot added this to the .NET 10 SR12 milestone Sep 24, 2026
kubaflo added a commit that referenced this pull request Sep 27, 2026
<!-- Please let the below note in for people that 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 if this change resolves your issue.
Thank you!

### Issue Details
- On Android with Material 3 enabled, the Shell TabBar and TabbedPage
selection colors do not update when the application theme changes.


### Root Cause
- On Android Material 3, TabbedPage's
BottomNavigationView.ItemActiveIndicatorColor was not updated when the
application theme changed, causing the tab selection indicator to retain
the previous theme's color.

### Description of Change
- Added UpdateActiveIndicatorColor to BottomNavigationViewUtils to
update BottomNavigationView.ItemActiveIndicatorColor based on the
current application theme, ensuring the TabBar selection indicator uses
the correct color after a theme change.
- Integrated UpdateActiveIndicatorColor into ShellItemRenderer and
TabbedPageManager so the TabBar selection indicator is refreshed when
the appearance changes.
- Subscribed and unsubscribed to
Application.Current.RequestedThemeChanged in TabbedPageManager to
refresh the TabbedPage selection indicator when the application theme
changes.

### Issues Fixed
Fixes #38234

### Validated the behaviour in the following platforms
- [ ] Windows
- [x] Android
- [ ] iOS
- [ ] Mac


### Output
| Before | After |
|----------|----------|
| <video
src="https://github.com/user-attachments/assets/297ade85-9f14-4e31-9fb6-bc59cc8bce6f">|
<video
src="https://github.com/user-attachments/assets/f0f82993-dc89-4dbd-bdc4-e0aeb89cd820">
|

---------

Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Oct 3, 2026
<!-- Please let the below note in for people that 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 if this change resolves your issue.
Thank you!

### Issue Details
- On Android with Material 3 enabled, the Shell TabBar and TabbedPage
selection colors do not update when the application theme changes.


### Root Cause
- On Android Material 3, TabbedPage's
BottomNavigationView.ItemActiveIndicatorColor was not updated when the
application theme changed, causing the tab selection indicator to retain
the previous theme's color.

### Description of Change
- Added UpdateActiveIndicatorColor to BottomNavigationViewUtils to
update BottomNavigationView.ItemActiveIndicatorColor based on the
current application theme, ensuring the TabBar selection indicator uses
the correct color after a theme change.
- Integrated UpdateActiveIndicatorColor into ShellItemRenderer and
TabbedPageManager so the TabBar selection indicator is refreshed when
the appearance changes.
- Subscribed and unsubscribed to
Application.Current.RequestedThemeChanged in TabbedPageManager to
refresh the TabbedPage selection indicator when the application theme
changes.

### Issues Fixed
Fixes #38234

### Validated the behaviour in the following platforms
- [ ] Windows
- [x] Android
- [ ] iOS
- [ ] Mac


### Output
| Before | After |
|----------|----------|
| <video
src="https://github.com/user-attachments/assets/297ade85-9f14-4e31-9fb6-bc59cc8bce6f">|
<video
src="https://github.com/user-attachments/assets/f0f82993-dc89-4dbd-bdc4-e0aeb89cd820">
|

---------

Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Oct 6, 2026
<!-- Please let the below note in for people that 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 if this change resolves your issue.
Thank you!

### Issue Details
- On Android with Material 3 enabled, the Shell TabBar and TabbedPage
selection colors do not update when the application theme changes.


### Root Cause
- On Android Material 3, TabbedPage's
BottomNavigationView.ItemActiveIndicatorColor was not updated when the
application theme changed, causing the tab selection indicator to retain
the previous theme's color.

### Description of Change
- Added UpdateActiveIndicatorColor to BottomNavigationViewUtils to
update BottomNavigationView.ItemActiveIndicatorColor based on the
current application theme, ensuring the TabBar selection indicator uses
the correct color after a theme change.
- Integrated UpdateActiveIndicatorColor into ShellItemRenderer and
TabbedPageManager so the TabBar selection indicator is refreshed when
the appearance changes.
- Subscribed and unsubscribed to
Application.Current.RequestedThemeChanged in TabbedPageManager to
refresh the TabbedPage selection indicator when the application theme
changes.

### Issues Fixed
Fixes #38234

### Validated the behaviour in the following platforms
- [ ] Windows
- [x] Android
- [ ] iOS
- [ ] Mac


### Output
| Before | After |
|----------|----------|
| <video
src="https://github.com/user-attachments/assets/297ade85-9f14-4e31-9fb6-bc59cc8bce6f">|
<video
src="https://github.com/user-attachments/assets/f0f82993-dc89-4dbd-bdc4-e0aeb89cd820">
|

---------

Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Oct 13, 2026
<!-- Please let the below note in for people that 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 if this change resolves your issue.
Thank you!

### Issue Details
- On Android with Material 3 enabled, the Shell TabBar and TabbedPage
selection colors do not update when the application theme changes.


### Root Cause
- On Android Material 3, TabbedPage's
BottomNavigationView.ItemActiveIndicatorColor was not updated when the
application theme changed, causing the tab selection indicator to retain
the previous theme's color.

### Description of Change
- Added UpdateActiveIndicatorColor to BottomNavigationViewUtils to
update BottomNavigationView.ItemActiveIndicatorColor based on the
current application theme, ensuring the TabBar selection indicator uses
the correct color after a theme change.
- Integrated UpdateActiveIndicatorColor into ShellItemRenderer and
TabbedPageManager so the TabBar selection indicator is refreshed when
the appearance changes.
- Subscribed and unsubscribed to
Application.Current.RequestedThemeChanged in TabbedPageManager to
refresh the TabbedPage selection indicator when the application theme
changes.

### Issues Fixed
Fixes #38234

### Validated the behaviour in the following platforms
- [ ] Windows
- [x] Android
- [ ] iOS
- [ ] Mac


### Output
| Before | After |
|----------|----------|
| <video
src="https://github.com/user-attachments/assets/297ade85-9f14-4e31-9fb6-bc59cc8bce6f">|
<video
src="https://github.com/user-attachments/assets/f0f82993-dc89-4dbd-bdc4-e0aeb89cd820">
|

---------

Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Oct 14, 2026
<!-- Please let the below note in for people that 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 if this change resolves your issue.
Thank you!

### Issue Details
- On Android with Material 3 enabled, the Shell TabBar and TabbedPage
selection colors do not update when the application theme changes.


### Root Cause
- On Android Material 3, TabbedPage's
BottomNavigationView.ItemActiveIndicatorColor was not updated when the
application theme changed, causing the tab selection indicator to retain
the previous theme's color.

### Description of Change
- Added UpdateActiveIndicatorColor to BottomNavigationViewUtils to
update BottomNavigationView.ItemActiveIndicatorColor based on the
current application theme, ensuring the TabBar selection indicator uses
the correct color after a theme change.
- Integrated UpdateActiveIndicatorColor into ShellItemRenderer and
TabbedPageManager so the TabBar selection indicator is refreshed when
the appearance changes.
- Subscribed and unsubscribed to
Application.Current.RequestedThemeChanged in TabbedPageManager to
refresh the TabbedPage selection indicator when the application theme
changes.

### Issues Fixed
Fixes #38234

### Validated the behaviour in the following platforms
- [ ] Windows
- [x] Android
- [ ] iOS
- [ ] Mac


### Output
| Before | After |
|----------|----------|
| <video
src="https://github.com/user-attachments/assets/297ade85-9f14-4e31-9fb6-bc59cc8bce6f">|
<video
src="https://github.com/user-attachments/assets/f0f82993-dc89-4dbd-bdc4-e0aeb89cd820">
|

---------

Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Oct 18, 2026
<!-- Please let the below note in for people that 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 if this change resolves your issue.
Thank you!

### Issue Details
- On Android with Material 3 enabled, the Shell TabBar and TabbedPage
selection colors do not update when the application theme changes.


### Root Cause
- On Android Material 3, TabbedPage's
BottomNavigationView.ItemActiveIndicatorColor was not updated when the
application theme changed, causing the tab selection indicator to retain
the previous theme's color.

### Description of Change
- Added UpdateActiveIndicatorColor to BottomNavigationViewUtils to
update BottomNavigationView.ItemActiveIndicatorColor based on the
current application theme, ensuring the TabBar selection indicator uses
the correct color after a theme change.
- Integrated UpdateActiveIndicatorColor into ShellItemRenderer and
TabbedPageManager so the TabBar selection indicator is refreshed when
the appearance changes.
- Subscribed and unsubscribed to
Application.Current.RequestedThemeChanged in TabbedPageManager to
refresh the TabbedPage selection indicator when the application theme
changes.

### Issues Fixed
Fixes #38234

### Validated the behaviour in the following platforms
- [ ] Windows
- [x] Android
- [ ] iOS
- [ ] Mac


### Output
| Before | After |
|----------|----------|
| <video
src="https://github.com/user-attachments/assets/297ade85-9f14-4e31-9fb6-bc59cc8bce6f">|
<video
src="https://github.com/user-attachments/assets/f0f82993-dc89-4dbd-bdc4-e0aeb89cd820">
|

---------

Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo added a commit that referenced this pull request Oct 21, 2026
<!-- Please let the below note in for people that 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 if this change resolves your issue.
Thank you!

### Issue Details
- On Android with Material 3 enabled, the Shell TabBar and TabbedPage
selection colors do not update when the application theme changes.


### Root Cause
- On Android Material 3, TabbedPage's
BottomNavigationView.ItemActiveIndicatorColor was not updated when the
application theme changed, causing the tab selection indicator to retain
the previous theme's color.

### Description of Change
- Added UpdateActiveIndicatorColor to BottomNavigationViewUtils to
update BottomNavigationView.ItemActiveIndicatorColor based on the
current application theme, ensuring the TabBar selection indicator uses
the correct color after a theme change.
- Integrated UpdateActiveIndicatorColor into ShellItemRenderer and
TabbedPageManager so the TabBar selection indicator is refreshed when
the appearance changes.
- Subscribed and unsubscribed to
Application.Current.RequestedThemeChanged in TabbedPageManager to
refresh the TabbedPage selection indicator when the application theme
changes.

### Issues Fixed
Fixes #38234

### Validated the behaviour in the following platforms
- [ ] Windows
- [x] Android
- [ ] iOS
- [ ] Mac


### Output
| Before | After |
|----------|----------|
| <video
src="https://github.com/user-attachments/assets/297ade85-9f14-4e31-9fb6-bc59cc8bce6f">|
<video
src="https://github.com/user-attachments/assets/f0f82993-dc89-4dbd-bdc4-e0aeb89cd820">
|

---------

Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-controls-shell Shell Navigation, Routes, Tabs, Flyout community ✨ Community Contribution material3 partner/syncfusion Issues / PR's with Syncfusion collaboration platform/android 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.

Android Material 3: Shell TabBar Tab selection color does not update with AppTheme

5 participants