Repository navigation
[net11.0] Add public Shell flyout item template contract for external backends - #37862
Conversation
… backends Out-of-tree Shell backends (for example the Tizen backend that now lives outside this repository) have to decide whether a flyout item uses an application supplied `DataTemplate` or the backend's own platform default view. That decision requires resolving the object that actually carries the template, which is not always the flyout item itself: menu items are backed by a pair of objects (the internal `MenuShellItem` wrapper and the public `MenuItem`) and the template can be set on either one. The logic lived in the internal `Shell.GetBindableObjectWithFlyoutItemTemplate`, so external backends could not reproduce it and menu items incorrectly fell back to the platform default template. Expose the minimal contract publicly on `Shell`: * `GetFlyoutItemTemplateProperty` - the `BindableProperty` used for an item. * `GetFlyoutItemTemplateSource` - the object that carries the template, the style class, and the binding context for an item. * `IsFlyoutItemTemplateSet` - whether `GetFlyoutItemDataTemplate` returns an application supplied template or falls back to the default flyout cell. `MenuShellItem` stays internal. All existing call sites (Shell template resolution, default flyout cell style classes, and the in-box Tizen flyout adaptor) now go through the public helpers, so flyout item, menu item, and header template selection, binding contexts, and commands are unchanged. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 37862Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 37862" |
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
…l one The ShellTemplateResolver expiry test watched for Shell.GetBindableObjectWithFlyoutItemTemplate becoming public. Upstream is not planning to publish that name: dotnet/maui#37862 proposes a different shape - IsFlyoutItemTemplateSet, GetFlyoutItemTemplateSource and GetFlyoutItemTemplateProperty, used with the already-public IShellController.GetFlyoutItemDataTemplate. As written the test could never have fired, so the adapter would have quietly become permanent - exactly the rot these tests exist to prevent. It now watches the three proposed members and names the follow-up work when they land. #37862 is OPEN, so nothing adopts it here. ShellTemplateResolver's implementation is untouched and stays provisional until the API merges and ships in a referenced package. Only the detector, the request ledger and the wave doc change. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR adds a small set of new public Shell helper APIs that let out-of-tree Shell flyout backends resolve flyout item templates (and their template “source” object) the same way in-box backends do, especially for the MenuItem/MenuShellItem wrapper case.
Changes:
- Add public static
Shellhelpers:GetFlyoutItemTemplateProperty,GetFlyoutItemTemplateSource, andIsFlyoutItemTemplateSet. - Update in-box call sites (Shell template resolution, default flyout cell style-class sourcing, and Tizen flyout item template selection) to route through the new helpers.
- Add
ShellExternalFlyoutBackendTeststo validate the contract from the perspective of an external backend.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/Controls/tests/Core.UnitTests/ShellExternalFlyoutBackendTests.cs | Adds unit tests that simulate an external Shell flyout backend using the new public helper contract. |
| src/Controls/src/Core/Shell/Shell.cs | Introduces the new public helper APIs and switches internal template resolution to use them. |
| src/Controls/src/Core/Shell/BaseShellItem.cs | Uses the new template-source helper to select the style-class source for the default flyout cell. |
| src/Controls/src/Core/PublicAPI/netstandard/PublicAPI.Unshipped.txt | Records the new public APIs for netstandard PublicAPI validation. |
| src/Controls/src/Core/PublicAPI/net/PublicAPI.Unshipped.txt | Records the new public APIs for net PublicAPI validation. |
| src/Controls/src/Core/PublicAPI/net-windows/PublicAPI.Unshipped.txt | Records the new public APIs for net-windows PublicAPI validation. |
| src/Controls/src/Core/PublicAPI/net-tizen/PublicAPI.Unshipped.txt | Records the new public APIs for net-tizen PublicAPI validation. |
| src/Controls/src/Core/PublicAPI/net-maccatalyst/PublicAPI.Unshipped.txt | Records the new public APIs for net-maccatalyst PublicAPI validation. |
| src/Controls/src/Core/PublicAPI/net-ios/PublicAPI.Unshipped.txt | Records the new public APIs for net-ios PublicAPI validation. |
| src/Controls/src/Core/PublicAPI/net-android/PublicAPI.Unshipped.txt | Records the new public APIs for net-android PublicAPI validation. |
| src/Controls/src/Core/Handlers/Shell/Tizen/ShellFlyoutItemAdaptor.cs | Updates Tizen flyout template selection to rely on Shell.IsFlyoutItemTemplateSet. |
| /// <summary> | ||
| /// Gets the <see cref="BindableProperty"/> that Shell uses to look up the flyout <see cref="DataTemplate"/> | ||
| /// for <paramref name="flyoutItem"/>. | ||
| /// </summary> | ||
| /// <param name="flyoutItem">A flyout item produced by <see cref="IShellController.GenerateFlyoutGrouping"/>.</param> | ||
| /// <returns> | ||
| /// <see cref="MenuItemTemplateProperty"/> for menu items, otherwise <see cref="ItemTemplateProperty"/>. | ||
| /// </returns> | ||
| /// <exception cref="ArgumentNullException"><paramref name="flyoutItem"/> is <see langword="null"/>.</exception> | ||
| public static BindableProperty GetFlyoutItemTemplateProperty(BindableObject flyoutItem) | ||
| { | ||
| if (flyoutItem is null) | ||
| throw new ArgumentNullException(nameof(flyoutItem)); | ||
|
|
||
| return flyoutItem is IMenuItemController ? MenuItemTemplateProperty : ItemTemplateProperty; | ||
| } |
There was a problem hiding this comment.
Good catch on the original revision — that concern is resolved by the redesign in 37f4a9c, which restored the helper rather than removing it.
Shell.GetBindableObjectWithFlyoutItemTemplate still exists with the identical signature, just internal and now documented:
internal static BindableObject GetBindableObjectWithFlyoutItemTemplate(BindableObject bo)So both shipped binary profiles still resolve it — verified against the artifacts that Microsoft.Maui.Controls.targets actually imports:
$ strings maui.aotprofile | grep -c GetBindableObjectWithFlyoutItemTemplate
1
$ strings maui-sc.aotprofile | grep -c GetBindableObjectWithFlyoutItemTemplate
1
IShellController.GetFlyoutItemDataTemplate is also unchanged in signature, so its profile entry (maui.aotprofile.txt:2056, maui-sc.aotprofile.txt:2575) stays valid too.
Two notes for the record:
- The
.txtfiles are human-readable dumps, not build inputs —Controls.Build.Tasks.csprojpacksnuget\**withExclude="nuget\**\*.aotprofile.txt", andMicrosoft.Maui.Controls.targetsimports the binarymaui.aotprofile/maui-sc.aotprofile. Hand-editing the.txtwould have no effect on profiled AOT. - The new
ResolveFlyoutItemTemplateis not in the profiles, which is expected: the profiles are regenerated from a recorded run viasrc/ProfiledAot, not maintained by hand. It's a small non-virtual static on a path that is already only hit while building flyout items.
…name The proposed API has changed shape twice while this adapter sat here: the internal GetBindableObjectWithFlyoutItemTemplate, then a three-method contract, and now a single resolve-style call. Each time the expiry test named members explicitly it silently stopped detecting anything - worse than having no test, because a green build then implies the adapter is still needed. The detector now matches the concept: any new public Shell member about a flyout item template. It is covered by table-driven tests proving it fires for the resolve-style shape, the three-method shape and plausible alternatives, while ignoring pre-existing members - so it is verified to trigger rather than merely assumed to. dotnet/maui#37862 remains OPEN and under design. No shape is adopted; ShellTemplateResolver's implementation is untouched. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Replaces the three algorithm-piece methods with one nullable-annotated,
result-oriented entry point:
public static DataTemplate? ResolveFlyoutItemTemplate(Shell? shell, BindableObject flyoutItem)
It returns the final application-defined template, or null meaning "use your
own platform-native default". Rationale for the change:
* `Get*` on Shell reads as an attached-property accessor, which these were not.
* Exposing the property/source/is-set trio froze the internal lookup levels as
public contract.
* The documented binding context was wrong. The built-in Android, iOS, and
Windows backends all bind created content to the flyout item itself
(`View.BindingContext = context` / `_content.BindingContext = bo`), not to the
object that carried the template, which for `ShellContent.MenuItems` is the
parent `ShellContent`.
`MenuShellItem` and the paired-object lookup stay internal.
Null handling is explicit: an item that sets the template property wins even
when the value is null (so an app can opt one item out of a Shell level
template), and a null or null-bound value is reported as "no template" rather
than producing a true/null mismatch or an NRE in platform code.
`IShellController.GetFlyoutItemDataTemplate` now composes the new method with
the default flyout cell, so the in-box path never hands null to platform code.
The Windows backend is dogfooded through the public API, and the in-box Tizen
adaptor now resolves and null-checks in one step.
Tests grow to 23 and add binding coverage: Text/Command bound through
`ShellContent.MenuItems` and through Shell-level `MenuItemTemplate`, flyout
selection invoking the command, item vs Shell template precedence, explicit
null, null-bound, `DataTemplateSelector`, headers/footers and their templates,
Shell resolution when the argument is omitted, unparented items, and argument
validation.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Adds the remaining flyout item shape an external backend can be handed: the bare MenuItem whose template is set on its (internal) MenuShellItem wrapper, reachable publicly as MenuItem.Parent, plus the no-template fallback for the same shape. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Redesigned — ready for a fresh reviewThe three-step API from the first revision is gone. Head is now Single nullable result-oriented API. One method, algorithm details internal: public static DataTemplate? ResolveFlyoutItemTemplate(Shell? shell, BindableObject flyoutItem)
Public Bind to the flyout item, not the template source. Confirmed correct: for Explicit/bound null is "no application template". An item that sets the property wins even when the value is null (so an app can opt one item out of a Shell-level template), and null or null-bound resolves to No Dogfooded on Windows. Nullable annotations + PublicAPI. Method is in a Tests — 25, public API only.
The AOT-profile comment is answered inline — the helper was restored with an identical signature, so the shipped binary profiles still resolve it. |
| // An explicitly set template wins even when its value is null, which lets an application opt a single item | ||
| // out of a Shell level template. A null value is reported as "no template" so callers fall back safely. | ||
| BindableObject templateSource = GetBindableObjectWithFlyoutItemTemplate(flyoutItem); |
…tion bug Introduces ShellFlyoutTemplateResolution.ResolveFlyoutItemTemplate, whose signature is deliberately identical to the redesigned upstream API in dotnet/maui#37862 so adoption becomes a one-line body swap. Nothing is bound to the open PR. Building the seam surfaced a real bug. The call sites passed a PRE-RESOLVED template owner to IShellController.GetFlyoutItemDataTemplate, but that method re-derives the owner itself and picks the BindableProperty from its argument's own type. Handing it the owner therefore selected ItemTemplateProperty where MenuItemTemplateProperty was authored, silently dropping MenuItemTemplate for flyout menu items - and also skipped the internal MenuShellItem branch that only that method can reach. The raw item is now passed, which is both correct and what upstream does. The seam also returns DataTemplate? rather than a template-or-default, because GetFlyoutItemDataTemplate never returns null; calling it unguarded would have replaced Tizen's own flyout item view with MAUI's generic cell for every app that never authored a template. Records Core's published shapes (163677d) including the TizenNaviPage rename and the ITizenToolbarContainer push contract, and notes that TizenShellView's pull-based toolbar wiring must be reworked on rebase since SetToolbar disposes the toolbar it replaces. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 12 out of 12 changed files in this pull request and generated no new comments.
Suppressed comments (1)
src/Controls/src/Core/Shell/Shell.cs:788
ResolveFlyoutItemTemplatechecksGetBindableObjectWithFlyoutItemTemplate(flyoutItem)first. For aMenuIteminShellContent.MenuItems,GetBindableObjectWithFlyoutItemTemplatereturns the parentShellContentwhen it hasMenuItemTemplatePropertyset, which means a template explicitly set on theMenuItemitself (including an explicitnullto opt out) will be ignored. If the flyout item has the template property set, it should win before consulting the paired-object lookup.
BindableProperty bp = flyoutItem is IMenuItemController ? MenuItemTemplateProperty : ItemTemplateProperty;
// An explicitly set template wins even when its value is null, which lets an application opt a single item
// out of a Shell level template. A null value is reported as "no template" so callers fall back safely.
BindableObject templateSource = GetBindableObjectWithFlyoutItemTemplate(flyoutItem);
Test-only follow-up; no production API change. * The two bare MenuItem tests claimed a shape an external backend receives. It does not: GenerateFlyoutGrouping hands back the MenuShellItem wrapper for items added to Shell.Items, so passing the bare MenuItem exercises the resolver's parent lookup directly. Renamed to ResolverFindsTemplateOnThe- ParentOfAMenuItem / ResolverReturnsNullForAMenuItemWithNoTemplateAnywhere, reframed as direct unit coverage, and dropped the backend assertions. * Added the genuinely reachable case that was missing: a MenuItem in ShellContent.MenuItems with the template set on the MenuItem itself, which does appear in the flyout grouping as the bare MenuItem. * Pinned the pre-existing precedence when both the MenuItem and its parent set a template: the parent wins. That is long-standing Shell behavior which the public resolver preserves verbatim, so it is now covered rather than implied. * MenuItemTemplateBindsTextAndCommandForShellLevelMenuItems never asserted Command, because the MenuShellItem wrapper mirrors Text/Title but does not surface Command. Renamed to ...BindsTextForShellLevelMenuItems, removed the unused Command/invoked setup, and documented that selection is what activates the command (already covered by MenuItemFlyoutSelectionInvokesTheCommand). Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Follow-up pushed —
|
| Build | Queued | Result |
|---|---|---|
| 1569388 | 2026-08-26 22:18Z | ✅ 10/10 |
| 1568717 | 2026-08-26 16:03Z | ✅ 10/10 |
| 1567064 | 2026-08-25 15:27Z | ✅ 10/10 |
An 8.86 GB simulator download timing out at 99.4% is not reachable from this PR, which touches no samples, templates, integration tests, or build infrastructure. No fix warranted. Build 1569790 is now running on the new head and re-executes that leg.
Test accuracy cleanup
- Reframed the two synthetic tests. You were right —
GenerateFlyoutGroupinghands a backend theMenuShellItemwrapper forShell.Items, not the bareMenuItem. Renamed toResolverFindsTemplateOnTheParentOfAMenuItem/ResolverReturnsNullForAMenuItemWithNoTemplateAnywhere, commented as direct resolver unit coverage, and dropped the backend-round-trip assertions that implied a reachable shape. - Added the reachable case:
MenuItemTemplateSetOnTheMenuItemIsUsedForShellContentMenuItems—ShellContent.MenuItemsdoes put the bareMenuItemin the grouping, so an item-level template there is real. - Pinned the precedence:
ParentTemplateWinsOverMenuItemTemplateForShellContentMenuItems. ParentShellContentwins over theMenuItem— pre-existing Shell behavior the resolver preserves verbatim, now covered rather than implied. - Fixed the unasserted Command test: renamed to
MenuItemTemplateBindsTextForShellLevelMenuItemsand removed the unusedCommand/invokedsetup. TheMenuShellItemwrapper mirrorsText/Titlebut does not surfaceCommand; that is documented in the test, and command activation stays covered byMenuItemFlyoutSelectionInvokesTheCommand.
Windows explicit-null behavior
Now called out in the PR description: an item that explicitly sets its template to null previously rendered a blank flyout item on Windows (GetFlyoutItemDataTemplate returned null, so ShellFlyoutItemView skipped content creation). It now renders the default cell, matching Android and iOS — a deliberate consistency fix.
Validation
| Suite | Result |
|---|---|
Controls.Core.UnitTests |
6234 passed / 0 failed (27 in this file) |
Controls.Xaml.UnitTests |
2115 passed / 0 failed |
Diff for this follow-up is one file: ShellExternalFlyoutBackendTests.cs.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.
Suppressed comments (1)
src/Controls/src/Core/Shell/Shell.cs:741
- The XML docs say that if the owning Shell cannot be resolved when the shell argument is null, only templates set on the item itself are considered. However, the implementation can still resolve a menu item's template from its paired object/parent (via GetBindableObjectWithFlyoutItemTemplate), even when Shell is not found; what’s actually skipped is the Shell-level template fallback.
/// <param name="shell">
/// The <see cref="Shell"/> that owns <paramref name="flyoutItem"/>. When <see langword="null"/>, the owning Shell is
/// resolved from <paramref name="flyoutItem"/>; if it cannot be resolved, only templates set on the item itself are considered.
/// </param>
| // Resolve the application supplied template through the same public contract external backends use. | ||
| // A null result means the application did not supply one, so fall back to the default flyout item cell. | ||
| DataTemplate dataTemplate = null; | ||
|
|
||
| if (bo != null && _shell != null) | ||
| dataTemplate = Shell.ResolveFlyoutItemTemplate(_shell, bo) ?? BaseShellItem.CreateDefaultFlyoutItemCell(bo); |
GetBindableObjectWithFlyoutItemTemplate already returns its argument when that argument is null, so the guard added while the helper was briefly public was behaviorally identical. Reverting it removes BaseShellItem.cs from the change set entirely. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated no new comments.
Suppressed comments (1)
src/Controls/src/Core/Handlers/Shell/Windows/ShellFlyoutItemView.cs:75
Shell.ResolveFlyoutItemTemplatecan legally return aDataTemplateSelector, but this code path later callsCreateContent()directly. That bypasses selector resolution and makes Windows flyout item templating inconsistent with the new public contract and with the Tizen adaptor (which callsSelectDataTemplatefirst).
// Resolve the application supplied template through the same public contract external backends use.
// A null result means the application did not supply one, so fall back to the default flyout item cell.
DataTemplate dataTemplate = null;
if (bo != null && _shell != null)
dataTemplate = Shell.ResolveFlyoutItemTemplate(_shell, bo) ?? BaseShellItem.CreateDefaultFlyoutItemCell(bo);
|
Multi-model merge-safety review at All 27 external flyout-template tests passed, the existing 8 tests passed on both HEAD and merge base, net11.0/netstandard2.0 API builds are clean, and all 31 CI checks are green. Resolver precedence, explicit-null fallback, selector pass-through, binding, and the Windows/Tizen integration paths are coherent. No new material defect was found. Please correct the body claim that the shell-level menu template binds |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
MauiBot
left a comment
There was a problem hiding this comment.
Expert Review — 1 findings
See inline comments for details.
|
|
||
| return BaseShellItem.CreateDefaultFlyoutItemCell(bo); | ||
| } | ||
| => ResolveFlyoutItemTemplate(this, bo) ?? BaseShellItem.CreateDefaultFlyoutItemCell(bo); |
There was a problem hiding this comment.
🔍 AI-Generated Review (multi-model)
IShellController.GetFlyoutItemDataTemplate returns for an explicitly null template, which breaks the reference-equality fallback in the compatibility renderers.
Old behavior: when ItemTemplate/MenuItemTemplate was explicitly set to null (IsSet == true, value null), the method returned null. New behavior: ResolveFlyoutItemTemplate returns null for that case and the ?? here substitutes BaseShellItem.CreateDefaultFlyoutItemCell(bo).
Concrete scenario — Shell.ItemTemplate is explicitly set to null and a third party derives from ShellFlyoutRecyclerAdapter (Android) / ShellTableViewSource (iOS) overriding DefaultItemTemplate:
ShellFlyoutRecyclerAdapter.cs:74/ShellTableViewSource.cs:157testDefaultItemTemplate != null && Shell.ItemTemplate == dataTemplate. Previouslynull == nullmatched and the renderer'sDefaultItemTemplatewas used; nowdataTemplateis a fresh default cell instance, the comparison fails, and the renderer-supplied default is silently ignored (the same applies toDefaultMenuItemTemplate).
ShellExternalFlyoutBackendTests.ExplicitNullTemplateStillProducesDefaultCellForBuiltInBackends locks in the non-null return but does not cover the compat-renderer DefaultItemTemplate path, so this change is untested. If the substitution is intentional, please state it and add a regression test that derives from one of those adaptors with a non-null DefaultItemTemplate and an explicitly null Shell-level template; otherwise preserve the null return for the explicitly-null case and do the default-cell fallback only at the platform call sites (as the Windows and Tizen code in this PR already does).
MauiBot
left a comment
There was a problem hiding this comment.
AI Review Summary
@Redth — new AI review results are available based on commit
bd154f2.
🗂️ Review Sessions — click to expand
🚦 Gate — Test Before & After Fix
Gate Result: ✅ PASSED
Platform: ANDROID · Base: net11.0 · Merge base: 833e3375
✅ Verified (new API / feature) — this PR adds new API and a test that references it in the same project, so reverting the fix un-compiles the test: there is no valid "fails without the fix" baseline to establish (a compile-coupled baseline). The gate instead verified the fix by a clean build + pass with the fix, so this is a real PASS rather than a non-committal INCONCLUSIVE.
| Test | Without Fix (expect FAIL) | With Fix (expect PASS) |
|---|---|---|
🧪 ShellExternalFlyoutBackendTests ShellExternalFlyoutBackendTests |
🛠️ BUILD ERROR | ✅ PASS — 82s |
🔴 Without fix — 🧪 ShellExternalFlyoutBackendTests: 🛠️ BUILD ERROR · 87s
Error-relevant lines (filtered from the build log):
/home/vsts/work/1/s/src/Controls/tests/Core.UnitTests/ShellExternalFlyoutBackendTests.cs(225,22): error CS0117: 'Shell' does not contain a definition for 'ResolveFlyoutItemTemplate' [/home/vsts/work/1/s/src/Controls/tests/Core.UnitTests/Controls.Core.UnitTests.csproj]
/home/vsts/work/1/s/src/Controls/tests/Core.UnitTests/ShellExternalFlyoutBackendTests.cs(246,32): error CS0117: 'Shell' does not contain a definition for 'ResolveFlyoutItemTemplate' [/home/vsts/work/1/s/src/Controls/tests/Core.UnitTests/Controls.Core.UnitTests.csproj]
/home/vsts/work/1/s/src/Controls/tests/Core.UnitTests/ShellExternalFlyoutBackendTests.cs(269,38): error CS0117: 'Shell' does not contain a definition for 'ResolveFlyoutItemTemplate' [/home/vsts/work/1/s/src/Controls/tests/Core.UnitTests/Controls.Core.UnitTests.csproj]
/home/vsts/work/1/s/src/Controls/tests/Core.UnitTests/ShellExternalFlyoutBackendTests.cs(398,22): error CS0117: 'Shell' does not contain a definition for 'ResolveFlyoutItemTemplate' [/home/vsts/work/1/s/src/Controls/tests/Core.UnitTests/Controls.Core.UnitTests.csproj]
/home/vsts/work/1/s/src/Controls/tests/Core.UnitTests/ShellExternalFlyoutBackendTests.cs(436,22): error CS0117: 'Shell' does not contain a definition for 'ResolveFlyoutItemTemplate' [/home/vsts/work/1/s/src/Controls/tests/Core.UnitTests/Controls.Core.UnitTests.csproj]
/home/vsts/work/1/s/src/Controls/tests/Core.UnitTests/ShellExternalFlyoutBackendTests.cs(454,22): error CS0117: 'Shell' does not contain a definition for 'ResolveFlyoutItemTemplate' [/home/vsts/work/1/s/src/Controls/tests/Core.UnitTests/Controls.Core.UnitTests.csproj]
/home/vsts/work/1/s/src/Controls/tests/Core.UnitTests/ShellExternalFlyoutBackendTests.cs(477,56): error CS0117: 'Shell' does not contain a definition for 'ResolveFlyoutItemTemplate' [/home/vsts/work/1/s/src/Controls/tests/Core.UnitTests/Controls.Core.UnitTests.csproj]
/home/vsts/work/1/s/src/Controls/tests/Core.UnitTests/ShellExternalFlyoutBackendTests.cs(555,42): error CS0117: 'Shell' does not contain a definition for 'ResolveFlyoutItemTemplate' [/home/vsts/work/1/s/src/Controls/tests/Core.UnitTests/Controls.Core.UnitTests.csproj]
/home/vsts/work/1/s/src/Controls/tests/Core.UnitTests/ShellExternalFlyoutBackendTests.cs(563,22): error CS0117: 'Shell' does not contain a definition for 'ResolveFlyoutItemTemplate' [/home/vsts/work/1/s/src/Controls/tests/Core.UnitTests/Controls.Core.UnitTests.csproj]
/home/vsts/work/1/s/src/Controls/tests/Core.UnitTests/ShellExternalFlyoutBackendTests.cs(573,32): error CS0117: 'Shell' does not contain a definition for 'ResolveFlyoutItemTemplate' [/home/vsts/work/1/s/src/Controls/tests/Core.UnitTests/Controls.Core.UnitTests.csproj]
/home/vsts/work/1/s/src/Controls/tests/Core.UnitTests/ShellExternalFlyoutBackendTests.cs(579,60): error CS0117: 'Shell' does not contain a definition for 'ResolveFlyoutItemTemplate' [/home/vsts/work/1/s/src/Controls/tests/Core.UnitTests/Controls.Core.UnitTests.csproj]
/home/vsts/work/1/s/src/Controls/tests/Core.UnitTests/ShellExternalFlyoutBackendTests.cs(580,60): error CS0117: 'Shell' does not contain a definition for 'ResolveFlyoutItemTemplate' [/home/vsts/work/1/s/src/Controls/tests/Core.UnitTests/Controls.Core.UnitTests.csproj]
/home/vsts/work/1/s/src/Controls/tests/Core.UnitTests/ShellExternalFlyoutBackendTests.cs(36,11): error CS0117: 'Shell' does not contain a definition for 'ResolveFlyoutItemTemplate' [/home/vsts/work/1/s/src/Controls/tests/Core.UnitTests/Controls.Core.UnitTests.csproj]
/home/vsts/work/1/s/src/Controls/tests/Core.UnitTests/ShellExternalFlyoutBackendTests.cs(40,26): error CS0117: 'Shell' does not contain a definition for 'ResolveFlyoutItemTemplate' [/home/vsts/work/1/s/src/Controls/tests/Core.UnitTests/Controls.Core.UnitTests.csproj]
🟢 With fix — 🧪 ShellExternalFlyoutBackendTests: PASS ✅ · 82s
(no coded error found; showing last 1200 chars)
ItemTemplateSetOnTheMenuItemIsUsedForShellContentMenuItems [3 ms]
Passed MenuItemWithoutTemplateResolvesToNull [< 1 ms]
Passed ResolverReturnsNullForAMenuItemWithNoTemplateAnywhere [2 ms]
Passed MenuItemTemplateBindsTextForShellLevelMenuItems [22 ms]
Passed NullBoundTemplateResolvesToNull [3 ms]
Passed UnparentedItemWithItemTemplateStillResolves [< 1 ms]
Passed ItemLevelItemTemplateWinsOverShellLevelItemTemplate [1 ms]
[xUnit.net 00:00:03.50] Finished: Microsoft.Maui.Controls.Core.UnitTests
Passed MenuItemTemplateBindsTextAndCommandForShellContentMenuItems [10 ms]
Passed DataTemplateSelectorIsReturnedAndResolvedByTheCaller [3 ms]
Passed ShellItemWithoutTemplateResolvesToNull [< 1 ms]
Passed ItemTemplateBindsTitleForShellItems [1 ms]
Passed ParentTemplateWinsOverMenuItemTemplateForShellContentMenuItems [1 ms]
Passed FlyoutHeaderAndFooterAreAvailableToExternalBackends [1 ms]
Passed ShellLevelMenuItemTemplateIsUsedForMenuItems [1 ms]
Passed MenuItemTemplateSetOnMenuItemIsFoundThroughMenuShellItem [1 ms]
Passed ExplicitNullItemTemplateOnItemOptsOutOfShellTemplate [< 1 ms]
Test Run Successful.
Total tests: 27
Passed: 27
Total time: 4.4424 Seconds
⚠️ Failure Details
- 🛠️ ShellExternalFlyoutBackendTests without fix: build failed before tests could run
/home/vsts/work/1/s/src/Controls/tests/Core.UnitTests/ShellExternalFlyoutBackendTests.cs(78,22): error CS0117: 'Shell' does not contain a definition for 'ResolveFlyoutItemTemplate' [/home/vsts/work/1/...
📁 Fix files reverted (10 files)
src/Controls/src/Core/Handlers/Shell/Tizen/ShellFlyoutItemAdaptor.cssrc/Controls/src/Core/Handlers/Shell/Windows/ShellFlyoutItemView.cssrc/Controls/src/Core/PublicAPI/net-android/PublicAPI.Unshipped.txtsrc/Controls/src/Core/PublicAPI/net-ios/PublicAPI.Unshipped.txtsrc/Controls/src/Core/PublicAPI/net-maccatalyst/PublicAPI.Unshipped.txtsrc/Controls/src/Core/PublicAPI/net-tizen/PublicAPI.Unshipped.txtsrc/Controls/src/Core/PublicAPI/net-windows/PublicAPI.Unshipped.txtsrc/Controls/src/Core/PublicAPI/net/PublicAPI.Unshipped.txtsrc/Controls/src/Core/PublicAPI/netstandard/PublicAPI.Unshipped.txtsrc/Controls/src/Core/Shell/Shell.cs
📋 Pre-Flight — Context & Validation
PR #37862 Pre-Flight
Context
- Title:
[net11.0] Add public Shell flyout item template contract for external backends - Base / head:
net11.0/redth-shell-flyout-template-api - Remote head:
bd154f2514f27b0865953e3149f1b71b8a084612 - Materialized review commit:
b182ba7b7afe1af448a26d113d056cee7bfbab8e - Problem: Out-of-tree Shell backends cannot reliably find the application-defined flyout template because menu-item templates can live on an internal
MenuShellItemwrapper or a parentShellContent. This makes an external backend incorrectly choose its native default. - Gate: Passed before STEP 5a; do not rerun gate verification.
Existing PR Approach
The PR exposes Shell.ResolveFlyoutItemTemplate(Shell? shell, BindableObject flyoutItem). It resolves the internal paired template source, preserves item-over-Shell precedence (including explicit-null opt-out), and returns null when a backend should use its platform-native default. IShellController.GetFlyoutItemDataTemplate delegates to the resolver and restores the built-in default cell on null. Windows and Tizen are dogfooded through the new contract.
Direct Diff Inspection
Production changes:
src/Controls/src/Core/Shell/Shell.cs: adds the public resolver and documentation; simplifies the in-box controller method.src/Controls/src/Core/Handlers/Shell/Windows/ShellFlyoutItemView.cs: resolves through the public API and falls back to the default cell.src/Controls/src/Core/Handlers/Shell/Tizen/ShellFlyoutItemAdaptor.cs: resolves through the public API and falls back to its default template.- Seven
PublicAPI.Unshipped.txtfiles: record the nullable static API.
Tests:
- Adds
src/Controls/tests/Core.UnitTests/ShellExternalFlyoutBackendTests.cswith 27 tests covering resolution sources and precedence, binding, selectors, headers/footers, explicit/null-bound templates, ownership, and argument validation.
Bounded Candidate Inputs
- Primary test:
dotnet test src/Controls/tests/Core.UnitTests/Controls.Core.UnitTests.csproj --filter "ShellExternalFlyoutBackendTests" - Mandatory regression tests after primary passes:
dotnet test src/Controls/tests/Core.UnitTests/Controls.Core.UnitTests.csproj --filter "ShellToolbarTests"pwsh .github/scripts/BuildAndRunHostApp.ps1 -Platform android -TestFilter "Issue17550"
- Platform: Android.
- Candidate boundary: One implementation/test pass and at most one focused correction/retest. A primary-test pass is not a candidate pass until both regression commands pass.
- Restoration: Each attempt must use only
pwsh .github/scripts/EstablishBrokenBaseline.ps1 -Restore. - Worktree note: The checkout contains pre-existing CI-script changes and untracked CI helper files. They are outside this PR fix and must remain untouched.
- Baseline risk: The PR adds a tracked test file. If
.github/.baseline-state.jsonreports anyNewFiles, the try-fix skill requires the attempt to be recorded asBlockedbefore editing.
🔬 Code Review — Deep Analysis
Expert Evaluation — Submitted PR Fix
Verdict: NEEDS_CHANGES
Confidence: medium
Independent Assessment
The submitted change adds a public, nullable Shell.ResolveFlyoutItemTemplate contract that resolves the application-supplied flyout template across the internal MenuItem/MenuShellItem pairing and ShellContent.MenuItems ownership shape. The public resolver correctly preserves item-over-Shell precedence, treats an explicitly null value as an opt-out, and lets external backends choose their own native default. Windows and Tizen consume that contract directly, and the public API entries and focused external-backend coverage match the new surface.
Actionable Finding
⚠️ Compatibility renderer defaults are bypassed for explicitly null templates
src/Controls/src/Core/Shell/Shell.cs:822 changes IShellController.GetFlyoutItemDataTemplate from returning an explicitly set null value to replacing every null resolver result with BaseShellItem.CreateDefaultFlyoutItemCell(bo).
That alters a pre-existing compatibility contract used by:
src/Controls/src/Core/Compatibility/Handlers/Shell/Android/ShellFlyoutRecyclerAdapter.cs:69-75src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellTableViewSource.cs:152-158
Those renderers detect the Shell-level template by reference equality and substitute an overridden DefaultItemTemplate or DefaultMenuItemTemplate. With an explicitly null Shell template, the old null return compared equal to Shell.ItemTemplate/Shell.MenuItemTemplate; the new framework default-cell instance does not, so a third-party renderer override is silently skipped.
The new ExplicitNullTemplateStillProducesDefaultCellForBuiltInBackends test asserts only that the controller returns a non-null template. It does not exercise either compatibility renderer's overridable default-template path and therefore locks in the regression rather than detecting it.
Failure-Mode Probing
- No application template: the public resolver correctly returns null and external backends can choose their native default.
- Item-level explicit null over a Shell template: the public resolver correctly stops at the item and returns null.
- Shell-level explicit null with a compatibility renderer override: the controller now returns a fresh MAUI default cell, reference equality fails, and the renderer-specific default is bypassed.
- Windows/Tizen explicit null: both submitted call sites already perform their own null fallback, so correcting the compatibility behavior need not restore the former Windows blank item or Tizen null failure.
Reviewer Recommendation
Keep the public resolver and the Windows/Tizen dogfooding. Consolidate default selection at the compatibility renderer call sites so renderer-supplied defaults continue to win when resolution reports null, while retaining a final MAUI default-cell fallback before template selection. Add focused regression coverage for the overridden compatibility default path.
Other Review Areas
- Public API naming, nullable shape, XML documentation, and all seven
PublicAPI.Unshipped.txtentries are consistent. - The paired-object resolution is a faithful extraction of the existing internal behavior.
- No new lifecycle subscriptions, shared state, asynchronous work, or hot-path allocations were introduced.
- External output contracts and Trim/NativeAOT reachability are not applicable.
- Trusted Gate: passed (failure without the submitted fix, pass with it); not rerun.
🛠️ Try-Fix — Analysis & Comparison
PR #37862 — STEP 5a Try-Fix Aggregate
Candidate 1 — Containment-Scope Resolution
Model: claude-opus-5
Result: Blocked
findings_count: 0
Candidate narrative: ../try-fix-1/content.md
Attempt artifacts: attempt-1/
Approach
Replace the PR's fixed paired-object alias lookup with an ordered traversal of the flyout item's containment scope: nearest owners below the Shell, the item, the wrapped public MenuItem, then the Shell. The first object on which the applicable template property is explicitly set would win, including an explicit-null opt-out.
Difference from the PR
The PR assumes each flyout item has one hidden alias and resolves that alias through GetBindableObjectWithFlyoutItemTemplate. Candidate 1 instead treats the root cause as a missing scope traversal, making lookup independent of a fixed two-entry alias table and allowing precedence to follow directly from traversal order.
Outcome
No code was applied and the captured diff is empty. EstablishBrokenBaseline.ps1 rejected the repository-wide pre-existing dirty worktree before writing .github/.baseline-state.json; without a RevertedFiles allow-list, the try-fix boundary prohibits edits. The primary ShellExternalFlyoutBackendTests command and both mandatory regression commands were therefore not run. Inline self-review recorded [].
The exact restore command returned Restored: False / No baseline state found, which is the expected no-state result because baseline creation failed before any attempt edit. Pre-existing changes remained untouched and the PR source/test paths remained clean.
Candidate 2 — Eager Grouping-Boundary Template Projection
Model: gpt-5.6-sol
Result: Blocked
findings_count: 0
Candidate narrative: ../try-fix-2/content.md
Attempt artifacts: attempt-2/
Approach
Treat the defect as incomplete lifecycle-time state projection. When GenerateFlyoutGrouping materializes backend-facing items, copy the explicitly set menu template—including explicit null—from the public MenuItem or ShellContent owner onto the emitted object. The public resolver would then need only item-local lookup followed by Shell fallback.
Difference from Earlier Mechanisms
The PR performs a read-time paired-object alias lookup. Candidate 1 proposed a read-time containment-scope traversal. Candidate 2 does neither: it makes the emitted flyout item canonical once at grouping time, so backend-time resolution does not discover aliases or traverse ownership.
Outcome
No code was applied and the captured diff is empty. Candidate 2 independently ran the required baseline step, which again rejected the pre-existing dirty tracked CI/helper files before creating .github/.baseline-state.json. Without a RevertedFiles allow-list, edits were prohibited. The primary ShellExternalFlyoutBackendTests command and both mandatory regression commands were not run. Inline self-review recorded [].
The exact restore command returned Restored: False / No baseline state found, the expected no-state result because no attempt edit occurred. Candidate 1 and all pre-existing worktree changes remained untouched; PR source/test paths remained clean.
Aggregate Result
Two distinct alternatives were bounded and recorded, but neither could be implemented or tested because the baseline safety script requires a clean tracked worktree and the checkout contains unrelated pre-existing tracked changes. Both candidates are honestly classified Blocked, not Pass or Fail.
🏁 Report — Final Recommendation
⚠️ Final Recommendation: REQUEST CHANGES
Winner: pr-plus-reviewer
pr-plus-reviewer preserves the submitted public API and backend integration while correcting the expert reviewer's compatibility-renderer regression. It is the only candidate that both contains an implemented fix and passes the primary test plus every mandatory regression validation.
Comparative Ranking
| Rank | Candidate | Implementation | Primary validation | Regression validation | Assessment |
|---|---|---|---|---|---|
| 1 | pr-plus-reviewer |
PR plus compatibility-default correction and regression tests | PASS — 29/29 ShellExternalFlyoutBackendTests |
PASS — 21/21 ShellToolbarTests; Android Issue17550 passed |
Best balance of API correctness, backward compatibility, and empirical coverage |
| 2 | pr |
Submitted public resolver, Windows/Tizen dogfooding, and 27 focused tests | Trusted Gate PASS | Gate regression evidence PASS | Strong core fix, but the expert reviewer found an unaddressed compatibility-renderer regression |
| 3 | try-fix-1 |
Containment-scope traversal proposed; no patch produced | NOT RUN — BLOCKED | NOT RUN — BLOCKED | Broader traversal was speculative and never implemented or validated |
| 4 | try-fix-2 |
Grouping-boundary template projection proposed; no patch produced | NOT RUN — BLOCKED | NOT RUN — BLOCKED | Lifecycle projection was speculative and never implemented or validated |
No candidate failed a regression test. The two try-fix-* candidates rank below both implemented candidates because their baseline blocker prevented any code or validation.
Why the Raw PR Does Not Win
The raw PR changes IShellController.GetFlyoutItemDataTemplate so every null resolver result becomes a new MAUI default-cell template. Android's ShellFlyoutRecyclerAdapter and iOS's ShellTableViewSource historically use reference equality against the Shell template to substitute protected DefaultItemTemplate/DefaultMenuItemTemplate overrides. For an explicitly null Shell template, the old null value matched; the new default-cell instance does not, silently bypassing renderer-specific defaults.
The raw PR's non-null controller test does not exercise that extensibility path. This is a concrete backward-compatibility regression in public compatibility renderer classes, so the submitted patch should not be approved unchanged.
Why pr-plus-reviewer Wins
The candidate keeps Shell.ResolveFlyoutItemTemplate unchanged for external backends and keeps the controller's non-null guarantee. It centralizes compatibility-renderer selection in an internal helper that:
- preserves renderer-specific defaults for Shell templates, including explicitly null Shell templates;
- preserves the previous unset-template behavior;
- falls back to
BaseShellItem.CreateDefaultFlyoutItemCellbefore platform template selection; and - is shared by the Android and iOS compatibility renderers, with focused tests for both the positive explicit-null case and the negative unset case.
Validation Evidence
All commands ran exactly once from /home/vsts/work/_temp/pr-37862-pr-plus-reviewer:
| Command | Result |
|---|---|
dotnet test src/Controls/tests/Core.UnitTests/Controls.Core.UnitTests.csproj --filter "ShellExternalFlyoutBackendTests" |
PASS — 29 passed, 0 failed |
dotnet test src/Controls/tests/Core.UnitTests/Controls.Core.UnitTests.csproj --filter "ShellToolbarTests" |
PASS — 21 passed, 0 failed |
pwsh .github/scripts/BuildAndRunHostApp.ps1 -Platform android -TestFilter "Issue17550" |
PASS |
The Android command compiled and ran from the candidate path. The shared helper and unit tests cover the iOS selection logic, but the required validation matrix did not compile or execute an iOS target; that residual platform uncertainty does not outweigh the raw PR's verified logical regression.
Required Change
Apply the pr-plus-reviewer patch represented by pr-plus-reviewer/reviewer.patch to the submitted PR.
🔗 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/Shell/Shell.cs |
#36673 | #36562 |
src/Controls/src/Core/Shell/Shell.cs |
#35896 | #35249 |
🧪 Regression Tests to Verify
These tests were added by the overlapping fix PRs. Running them to verify no side-effect regressions:
| Fix PR | Type | Test | Filter |
|---|---|---|---|
| #36673 | UnitTest | ShellToolbarTests | ShellToolbarTests |
| #35896 | UITest | Issue17550 | Issue17550 |
🧪 Regression Test Results
✅ PASSED — 2 passed, 0 failed, 0 skipped
| Fix PR | Test | Type | Result |
|---|---|---|---|
| #36673 | ShellToolbarTests | UnitTest | ✅ PASSED |
| #35896 | Issue17550 | UITest | ✅ PASSED |
📱 UI Tests — Shell
Detected UI test categories: Shell
✅ Deep UI tests — 327 passed, 0 failed across 1 category on platform-pool agent (replaces in-process counts above).
🧪 UI Test Execution Results (deep, platform pool)
| Category | Tests | Snapshot diffs |
|---|---|---|
Shell |
327/327 ✓ | — |
📎 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: pr-plus-reviewer fixes the expert-identified compatibility-renderer default-template regression while preserving the submitted public resolver and non-null built-in fallback. It passed the focused resolver tests, Shell toolbar regression tests, and Android Issue17550 validation; both try-fix alternatives were blocked without code or test evidence.
Address the actionable findings in this review before merging.
|
Post-merge compatibility follow-up at A focused causal control found one narrow behavior change worth tracking. With a Shell-level flyout template explicitly set to This is not a reason to revert the fix: the old null path also caused the in-box NRE/blank-item failures this PR correctly removes, and the compatibility case requires a derived legacy renderer plus an explicitly-null Shell-level template. A targeted compatibility hook or migration note can follow separately. |
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!
Description of Change
Out-of-tree Shell backends need to decide whether a flyout item uses an application-supplied
DataTemplateor the backend's own platform-native presentation. That decision requires resolving the object that actually carries the template, which is not always the flyout item itself:MenuItemadded toShell.Itemsis wrapped in the internalMenuShellItem. WhenShell.MenuItemTemplateis set on theMenuItem, the wrapper never has the property set — the template lives onMenuShellItem.MenuItem.MenuIteminShellContent.MenuItemsappears in the flyout grouping directly, while the template may be set on its parentShellContent.Both branches lived in the internal
Shell.GetBindableObjectWithFlyoutItemTemplate. An external backend can only inspect the flyout item it is handed, so it concludes no template is set and incorrectly falls back to its platform default. This is a concrete blocker for the Tizen backend now maintained out-of-tree (Redth/Maui.Tizen, Wave C).New API
One result-oriented, nullable-annotated method:
Returns the final application-defined template, or
nullmeaning use your own platform-native default.MenuShellItemand the paired-object lookup stay internal, andIShellControlleris unchanged (no breaking interface addition).Precedence matches the built-in backends exactly: a template set on the item wins over one set on the Shell;
MenuItemTemplatePropertyis used for menu items andItemTemplatePropertyfor everything else.Binding the created content to
flyoutItemis what all three built-in backends do — iOSUIContainerCell.BindingContext = context, AndroidView.BindingContext = value, Windows_content.BindingContext = bo.Null semantics
An item that explicitly sets the template property wins even when the value is null, so an app can opt a single item out of a Shell-level template. A null or null-bound value is reported as "no template" rather than producing a
true+nullmismatch or an NRE in platform code.IShellController.GetFlyoutItemDataTemplateis nowResolveFlyoutItemTemplate(this, bo) ?? BaseShellItem.CreateDefaultFlyoutItemCell(bo), so the in-box path never handsnullto platform code. Previously an explicitly-null template returnednullhere, which produced a blank Windows item and an NRE on Tizen.Dogfooding
The Windows backend (
ShellFlyoutItemView) now goes through the public API and falls back to the default cell. The in-box Tizen adaptor resolves and null-checks in one step.BaseShellItem.CreateDefaultFlyoutItemCellcontinues to use the internal helper for its style-class source.Important
Intentional Windows behavior change. When a flyout item explicitly sets its template property to
null(e.g.Shell.SetItemTemplate(item, null)to opt one item out of a Shell-level template), Windows previously rendered a blank flyout item —GetFlyoutItemDataTemplatereturnednullandShellFlyoutItemViewskipped content creation entirely. It now renders the default flyout item cell, matching Android and iOS. This is a deliberate consistency fix, not a regression.Changes since the first revision
Addressing review feedback, the original three methods (
GetFlyoutItemTemplateProperty,GetFlyoutItemTemplateSource,IsFlyoutItemTemplateSet) were removed in favor of the single method above, because:Get*onShellreads as an attached-property accessor, which these were not.ShellContentforShellContent.MenuItems) instead of the flyout item.Issues Fixed
Unblocks external Shell backends (Tizen) from replicating in-box flyout item template selection.
Tests
ShellExternalFlyoutBackendTests(27 tests) drives aFakeExternalShellFlyoutBackendrestricted to public API only, mirroring an out-of-tree adaptor:null; Shell-levelItemTemplate/MenuItemTemplate; item-level template winning over Shell-level;MenuItemTemplateset on theMenuItemand found through theMenuShellItemwrapper; set on the parentShellContentand found through theMenuItem; set on theMenuItemitself forShellContent.MenuItems; and the pre-existing parent-wins precedence when both are setTextandCommandbound throughShellContent.MenuItems,Text/Commandbound through Shell-levelMenuItemTemplate,Titlebound for shell items, and flyout selection actually invoking theMenuItem.CommandDataTemplateSelectorreturned as-is and resolved by the callerFlyoutHeader,FlyoutFooter,FlyoutHeaderTemplate,FlyoutFooterTemplate, and headers not appearing as flyout itemsnullargument validationResults:
Controls.Core.UnitTestsControls.Xaml.UnitTestsControls.Corenet11.0+netstandard2.0buildnet11.0-windows*andnet11.0-tizen*cannot be compiled on this macOS box (MakePri.exe/ unrecognized tizen platform identifier), so those two backend edits are review-validated only; CI covers them.