Repository navigation
feat(helpers): add root element and window overloads to SystemThemeHelper - #1610
Conversation
…lper - theme reads/writes via XamlRoot.Content target the host root when the app is hosted under a foreign XamlRoot (Hot Design); new FrameworkElement/Window overloads act on the app own root instead - XamlRoot overloads unchanged, now delegate internally; warn log on null-root writes; obsolete messages and docs point to the new overloads - runtime tests: foreign-XamlRoot topology, subtree inheritance, window overload, null args
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-1610.eastus2.azurestaticapps.net |
There was a problem hiding this comment.
Pull request overview
This PR extends SystemThemeHelper with overloads that accept an app-owned root element (FrameworkElement) or Window, so theme reads/writes can be correctly scoped to the guest app’s visual tree in hosted/foreign-XamlRoot scenarios (e.g., Hot Design), while preserving the existing XamlRoot-based behavior.
Changes:
- Added
FrameworkElementandWindowoverloads for getting/setting theme;XamlRootoverloads now delegate to the element-based implementation. - Added runtime tests covering foreign-
XamlRoottopology, subtree inheritance, window overload behavior, and null-argument behavior. - Updated helper docs and walkthrough to lead with the hosted-safe root/window overload patterns and clarify popup-root limitations.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/Uno.Toolkit.UI/Helpers/SystemThemeHelper.cs | Adds root-element and window overloads and updates obsolete guidance/logging. |
| src/Uno.Toolkit.RuntimeTests/Tests/SystemThemeHelperTests.cs | Adds runtime coverage for hosted/foreign-XamlRoot theming and overload behavior. |
| doc/helpers/walkthroughs/systemthemehelper.howto.md | Updates walkthrough to recommend hosted-safe overload usage and adds guidance notes. |
| doc/helpers/SystemThemeHelper.md | Updates API surface documentation and clarifies hosted vs XamlRoot.Content behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-1610.eastus2.azurestaticapps.net |
- keep the XamlRoot-based API surface unchanged (per review); no new overloads - resolve the themed element through an internal per-XamlRoot app-root override (weakly held), falling back to XamlRoot.Content; hosting integrations (Hot Design) register the app root when re-parenting - warn log when no root element resolves; docs reverted (no user-facing change)
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-1610.eastus2.azurestaticapps.net |
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-1610.eastus2.azurestaticapps.net |
Restores the overloads implementation (aa4e3a6) over the internal app-root override, per review discussion: the XamlRoot API stays the default and in ALC-hosted situations the root/window is passed in.
… apps - XamlRoot overloads stay the API for normal situations; root/window overloads are for apps hosted under a XamlRoot they do not own (ALC)
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-1610.eastus2.azurestaticapps.net |
- drop misleading null-conditional on GetWindowRoot() in obsolete member - cover SetRootTheme(Window?, bool) in the null-argument test - add missing XAML using to the hosted-scenario doc snippet
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-1610.eastus2.azurestaticapps.net |
- obsolete messages point to the XamlRoot overloads first, element overload only for the hosted case; restore GetWindowRoot message - doc snippets use Microsoft.UI.Xaml only (Windows.UI.Xaml is deprecated)
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-field-01aa64f0f-1610.eastus2.azurestaticapps.net |
* docs: update for opt-in seed generation (#1609) * fix(ZoomContentControl): re-fit/center on AdditionalMargin change - `AdditionalMargin` insets the usable viewport and participates in `FitToCanvas`/`CenterContent`, but `OnAdditionalMarginChanged` only refreshed the scrollbars, so content stayed fitted/centered against the previous margin until an unrelated size/zoom change re-fit it. - Mirror `OnViewportSizeChanged`: call `UpdateScrollDetails()` so the auto fit/center pass re-runs (gated on `AutoFitToCanvas`/`AutoCenterContent`). - Add runtime tests (red/fix/green): re-fit on margin increase; no forced re-fit when `AutoFitToCanvas` is disabled. * docs: spec for ZoomContentControl AdditionalMargin re-fit * docs: note AdditionalMargin re-fit behavior on ZoomContentControl * feat(helpers): add root element and window overloads to SystemThemeHelper (#1610) * docs: add scrollbars to cspell dictionary Fixes spellcheck failures on the ZoomContentControl AdditionalMargin re-fit spec (lines 14 and 58). * fix(responsive): subscribe to XamlRoot.Changed weakly + add Reset purge hook ResponsiveHelper.InitializeIfNeeded subscribed to the process-global XamlRoot.Changed with a strong lambda capturing the process-lifetime static _defaultSizeProvider, with no teardown. The host XamlRoot then roots the Toolkit static chain for the process lifetime, pinning the Toolkit AssemblyLoadContext in a downstream host that loads previewed apps into their own collectible ALCs. - Subscribe via a WeakReference-backed self-detaching handler (static, non-capturing onEvent/detach), so the XamlRoot only holds a weak reference. - Record the subscription in a SerialDisposable. - Add internal Reset() to tear down the default/override providers and their subscriptions between app loads. - Add DEBUG test hooks and ResponsiveHelperLeakTests (deterministic teardown + GC weak-collectibility proof). Contributes to #1607 Co-Authored-By: Claude Fable 5 <[email protected]> * fix(navbar): weakly subscribe BackRequested; unsubscribe nested-element handlers on dispose Two ALC-pin sweeps: - NavigationBar subscribed to the process-global SystemNavigationManager.BackRequested with an instance-method delegate. It is detached on Unloaded, but Unloaded does not fire when the owner's ALC is torn down abruptly. Subscribe via a WeakReference-backed self-detaching handler so the global singleton only holds a weak reference; keep the Unloaded fast path. - FrameworkElementExtensions.SubscribeToNestedElements returned a disposable that cleared its subscription list WITHOUT invoking the recorded unsubscribe actions, leaving Loaded handlers attached (pinning the closure graph to any host-owned element). Invoke each recorded Unsubscribe() on dispose. Adds red/green runtime leak tests for both (weak-collectibility proofs) and a DEBUG test hook on NavigationBar. Contributes to #1607 Co-Authored-By: Claude Fable 5 <[email protected]> * fix(dependencyobject): key DP reflection cache weakly by Type so collectible ALCs unload DependencyObjectExtensions cached dependency-property reflection results in a process-lifetime Dictionary<(Type, string), ...>. The strong Type key kept that Type's LoaderAllocator alive, pinning a collectible AssemblyLoadContext (e.g. a downstream host that loads previewed apps into their own collectible ALCs) for the process lifetime. - Replace with ConditionalWeakTable<Type, Dictionary<string, DependencyPropertyInfo?>>: the owner Type is now held weakly, so its per-property cache (and the values it holds) becomes unreachable once the Type/ALC is collected. - Guard inner-dictionary access with a lock. - Add a DEBUG test hook and a red/green runtime test using a collectible (RunAndCollect) dynamic assembly Type, proving the Type key is collectible. Contributes to #1607 Co-Authored-By: Claude Fable 5 <[email protected]> * fix(responsive): weak WindowSizeChanged sub + Unloaded teardown + dead-instance sweep ResponsiveExtension rooted every instance in the static HardSelfReferences list and only removed it from CleanupIfHostDisposed(), which only ran from OnWindowSizeChanged. In a fixed-size preview canvas the window never resizes, so that event never fires and dead extensions accumulate forever, each pinning its target/host graph — and, across a collectible AssemblyLoadContext boundary, the previewed app's ALC. The static WindowSizeChanged subscription and the static TrackedInstances weak-reference list had the same accumulation problem. - Subscribe to the static WindowSizeChanged event via a WeakReference-backed self-detaching handler, so a dead extension is collectible without a resize. - Hook the host's Unloaded to proactively release the hard self-reference and tracking (graceful path). - Sweep dead HardSelfReferences / TrackedInstances entries on each Connect. - Add DEBUG test hooks and red/green runtime tests (sweep pruning + extension collectibility without resize/Uninstall). Contributes to #1607 Co-Authored-By: Claude Fable 5 <[email protected]> * fix(splash): release static Instance + splash content on Unloaded ExtendedSplashScreen kept a process-lifetime static Instance reference (assigned in the constructor, never cleared) and held its splash content — which on Android wraps the retained native splash bitmap. The splash is a one-shot startup control, so once it unloads those references only serve to pin it (and, when it belongs to a previewed app loaded into a collectible AssemblyLoadContext, that app's whole ALC) for the process lifetime. - Clear the static Instance on Unloaded (only if it still points at this instance). - Drop SplashScreenContent to an empty placeholder on Unloaded. - Android: recycle and null the retained splash bitmap via a new partial hook. - Add a DEBUG test hook and red/green runtime tests (Instance released on Unloaded + splash-screen collectibility). Also finalises specs/alc-weak-subscription-sweeps/recap.md. Contributes to #1607 Co-Authored-By: Claude Fable 5 <[email protected]> * refactor(responsive): drop redundant WindowSizeChanged -= before += in Connect The handler is a fresh delegate instance per Connect; the previous one is already detached by '_disposable.Disposable = null' at the top of Connect, so the '-=' was dead code. Co-Authored-By: Claude Fable 5 <[email protected]> * test(alc): add real-path regression guards for NavigationBar + ResponsiveExtension Review follow-up: the DEBUG-hook tests verify the weak helpers but cannot fail if the production wiring is reverted. Add integration tests that drive the real OnLoaded/Install paths and prove collectibility after tree removal, so a revert of the subscription/teardown wiring turns the test red. Also correct the ResponsiveExtension collectibility test's message to describe what it isolates. Contributes to #1607 Co-Authored-By: Claude Fable 5 <[email protected]> * fix(splashscreen): make ReleaseNativeSplashResources static + spelling The Android implementation of the partial ReleaseNativeSplashResources only clears the process-lifetime static SplashBitmap, so CA1822 (promoted to error under TreatWarningsAsErrors) required it to be static. Mark both partial declarations static; the unqualified call site is unaffected. Also fix a cspell failure (behaviour -> behavior) in the spec recap. * fix(tests): avoid cross-assembly cref to internal FrameworkElementExtensions FrameworkElementExtensions is internal to the UI assembly, so the XML-doc <see cref> in the RuntimeTests summary could not be resolved on the net9.0-android target (code binding honors InternalsVisibleTo, doc-comment cref resolution does not), failing the Android sample build with CS1574 under warnings-as-errors. Use a <c> code span, which needs no resolution. * refactor: address review on weak-subscription ALC-pin sweeps - fix: SubscribeToNestedElements dropped stale-depth subscriptions via RemoveRange without detaching their Loaded handlers, so they stayed attached yet untracked and leaked their closures; unsubscribe before removing. - refactor: extract the duplicated per-type CreateWeakHandler into a shared internal WeakEventHelper (EventHandler and TypedEventHandler overloads); migrate NavigationBar, ResponsiveHelper and ResponsiveExtension to it. - fix: capture the host XamlRoot weakly in ResponsiveHelper's default-provider teardown so the process-lifetime static does not strongly root a closed window's XamlRoot. - style: mark the ResponsiveHelper SerialDisposable statics readonly. - docs: reword NavigationBar/ResponsiveExtension comments to state the weak wrapper self-detaches on the next event raise after collection (Unloaded is the proactive teardown), not "once collected". Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * fix: guard ExtendedSplashScreen content against post-unload completion LoadNativeSplashScreen is fire-and-forget and, on the platforms where GetNativeSplashScreen awaits real I/O (reading the app manifest on Skia/WASM/Windows), can complete after the control has unloaded. Its continuation then re-assigned SplashScreenContent, undoing the Unloaded teardown that releases the content for collection. Skip the late assignment when the control has already unloaded, and wrap the fire-and-forget body in try/catch per the async guidance. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * chore: bump uno.sdk.private and themes to latest stable (#1614) * test: give SubscribeToNestedElements leak-test root a non-zero size The runtime-test engine's WaitForLoaded treats an element with ActualWidth/ActualHeight == 0 as not-yet-loaded, so SetContentAndWait on a bare empty Grid timed out deterministically before the test body ran (the desktop runtime-tests failure). Give the root an explicit size so it loads and the subscribe/dispose detachment assertion actually executes. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * Version bump after 9.0 release branch (#1613) * fix(deps): Use published dev Themes version instead of unreleased 7.0.1 (#1616) UnoThemesVersion was set to the stable 7.0.1, which was never published to nuget.org (only 7.0.0-dev.* and 7.1.0-dev.1 exist for the Uno.Themes family). Via the Uno.Sdk ImplicitPackagesResolver this value overrides the entire Themes group, so every published theme-flavored package (Uno.Toolkit.WinUI.Material / .Cupertino / .Simple and Uno.Themes.WinUI) ended up depending on an unresolvable Uno.*.WinUI 7.0.1, breaking restore for consumers (e.g. studio.live). Point at the current published dev head of that line, 7.1.0-dev.1. Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]> * docs: correct 9.0 migration guide, seed palette generation is opt-in (#1621) * docs: complete 9.0 migration guide breaking changes (#1622) * docs: complete 9.0 migration guide breaking changes * docs: adjust for review * Version bump after 9.1 release branch (#1623) * fix(TabBar): make SimpleVerticalTabBarStyle a real vertical rail (#1624) * feat: AutoGrid extensions * chore: added AutoGrid sample * chore: refactor * feat: rename AutoGrid to GridExtensions; split Mode into Auto+Direction * feat: refactor GridExtensionsSamplePage to use SamplePageLayout pattern * fix: reset StateHash when Auto is disabled Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * chore: fix winui build * chore: rename GridExtensions.Direction to AutoOrientation * chore: hide GridExtensions.AutoOrientation property * fix: sample filter * fix: address GridExtensions review feedback - scope the LayoutUpdated subscription to Loaded/Unloaded so the handler doesn't outlive the Grid's time in the visual tree - guard against re-entrancy around the placement loop - move StateHash/Subscription off XAML-resolvable attached properties and into a WeakAttachedDictionary, as SelectorExtensions already does - hash children by identity, so a consumer GetHashCode override can't force a placement pass on every layout - index the children instead of foreach, to stop boxing an enumerator on every layout pass - drop the 0-sentinel from ComputeStateHash and de-duplicate the single-cell early-out - document the span / preset-position limitations and register the doc page in toc.yml - cover definition changes, detach/re-attach, layout offsets, spans and preset positions in the runtime tests - use Checked/Unchecked for the sample page's Auto option Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * chore: map tokens with Select in GridExtensions sample parser Addresses the code-quality suggestion on ParseGridLengths: trim in the enumerable rather than as the loop body's first statement. System.Linq is already in scope via ImplicitUsings. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * feat(tabbar): add built-in accessibility support * fix(tabbar): address review feedback * feat(tabbar): enhance styling options for TabBar with Simple (#1627) * ci: Publish from servicing/* branches and bump main to 10.0-dev (#1634) * ci: Build and publish from servicing/* branches Adds servicing/* to the build and PR triggers, the IsReleaseBranch variable, the Publish_Dev stage condition, the dev-feed push step and the NBGV publicReleaseRefSpec, so a servicing branch produces public dev packages for the previous version line. * chore: Bump version to 10.0-dev for the Uno 7.0 line Frees the 9.2-dev version space for servicing/9.2, which continues to publish Uno 6.x-compatible packages. Without this bump both branches would claim the same NBGV height and the dev-feed push (allowPackageConflicts: true) would silently drop one of them. * ci: Document the servicing/* branch pattern at the publish gates Matches the comments the other repos carry, so the pattern is discoverable from the files that decide whether a branch publishes. * ci: Validate conventional commits on servicing/* branches 'Validate for conventional commits' is a required status check on main, so it must also report for PRs into a servicing branch -- otherwise applying main's branch protection to servicing/* leaves those PRs stuck waiting on a check that never runs. * ci: Set version to '11.0-dev.{height}' for the Uno 7.0 line (#1637) The 10.0 major is needed on the Uno 6.x line after all: aligning to Uno.Themes 8.0 moves the UnoThemesVersion floor across a major, which is breaking for Toolkit consumers even though Toolkit's own surface is unchanged. servicing/10.0 keeps that line open, so main moves to 11.0 for the Uno Platform 7.0 retarget. This supersedes the "for the Uno 7.0 line" wording in #1634, which assumed 10.0 would carry the 7.0 retarget. * fix(themes): adapt to upstream typography and spacing changes (#1636) Co-authored-by: Claude Opus 5 (1M context) <[email protected]> Co-authored-by: Copilot Autofix powered by AI <[email protected]> * docs(zoomcontentcontrol): replace non-existent ZoomTo/ZoomToRect with real API (#1633) Co-authored-by: Claude Fable 5 <[email protected]> * chore!: Target Uno.Sdk.Private 7.0 and net10.0 BREAKING CHANGE: library target frameworks move from net9.0 to net10.0. Consuming apps must target .NET 10 or later. Move every library project from `Uno.Sdk` to `Uno.Sdk.Private`, since no public `Uno.Sdk` 7.x exists yet (it is repacked by `uno.templates`). The samples and runtime tests were already on the private SDK. Library TFMs move net9.0 -> net10.0 to match `NetCurrent`, so libraries and sample apps no longer straddle two runtime versions. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019vRaBaNK2HnyWeg3TBzEu6 * fix!: Retarget Uno.UI.Toolkit namespaces for BC53 BREAKING CHANGE: the `Uno.UI.Toolkit` xmlns is gone. XAML copied from these styles must use `using:Uno.UI.Xaml.Controls` for `ElevatedView` and `using:Uno.UI.Xaml` for `UIElementExtensions.Elevation`. `Uno.UI.Toolkit` no longer exists: the assembly was renamed to `Uno.UI.Extras` (shipped inside `Uno.WinUI`) and its types kept natural namespaces rather than moving as a block, so the old single xmlns splits in two: - `ElevatedView` -> `Uno.UI.Xaml.Controls` - `UIElementExtensions.Elevation` -> `Uno.UI.Xaml` Remap the 13 XAML files that actually use those two members, drop the dead `toolkit` xmlns from the 15 that only declared it, and repoint the runtime-test xmlns map. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019vRaBaNK2HnyWeg3TBzEu6 * docs: Refresh net10.0 TFM hints in build docs Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019vRaBaNK2HnyWeg3TBzEu6 * fix(samples): Drop the SkiaSharp 3.x version pin The `SkiaSharpVersion` override held samples on SkiaSharp 3.119.2, which NU1605-downgrades against the 4.151.1 that Uno 7.0 requires. Removing the override lets the SDK pick its own matching version. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019vRaBaNK2HnyWeg3TBzEu6 * fix: Drop the class constraint on DependencyObject (BC26) `DependencyObject` is a class in Uno 7.0 rather than an interface, so the `#if HAS_UNO class,` half of these constraints is now both redundant and illegal (CS0450). Plain `where T : DependencyObject` is correct on WinUI and Uno alike. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019vRaBaNK2HnyWeg3TBzEu6 * fix: Use the SKSamplingOptions DrawImage overload SkiaSharp 4 obsoletes `DrawImage(SKImage, SKPoint, SKPaint)`, which builds as an error here. `SKSamplingOptions.Default` keeps the existing sampling. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019vRaBaNK2HnyWeg3TBzEu6 * fix(tests): Allow a null Page content assignment `UserControl.Content` is a non-nullable `UIElement` in Uno 7.0 (WinUI parity), so assigning the nullable test field trips CS8601. The test sets the content before the page is constructed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019vRaBaNK2HnyWeg3TBzEu6 * chore(deps): Bump Uno.Sdk.Private and DevServer to 7.0.0-dev.679 Moves both pins from 7.0.0-dev.645 to the latest 7.0 dev build. - Restores `GetBindingExpression` on `DependencyObject`, clearing the four CS1061 errors in CommandExtensions, LoadingView.HotReload and TabBar.HotReload that broke the desktop, wasm and hot-reload jobs. - Introduces no new build errors on any target framework. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01TgSByQzKDng9vt79kCkRTC * fix(styles): Give the Uno.UI.Xaml xmlns its own prefix BC53 split the old `Uno.UI.Toolkit` xmlns across two namespaces, but both halves kept the `toolkit` prefix. `Uno.XamlMerge.Task` merges every style into one dictionary and requires a prefix to map to exactly one namespace, so the merge aborted with: The XML namespace [toolkit] with the value [using:Uno.UI.Xaml] is different than the already defined value [using:Uno.UI.Xaml.Controls] Keep `toolkit` for `Uno.UI.Xaml.Controls` (`ElevatedView`, 10 files) and introduce `unoxaml` for `Uno.UI.Xaml` (`UIElementExtensions.Elevation`, the 3 NavigationBar styles). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01TgSByQzKDng9vt79kCkRTC * fix: Replace IDependencyObjectStoreProvider with MarkupHelper.SetParent Uno 7.0 removes `IDependencyObjectStoreProvider` and `DependencyObjectStore` from the public surface, breaking the internal `DependencyObject.SetParent` helper on every target framework. `Uno.UI.Helpers.MarkupHelper.SetParent(DependencyObject, object)` is the public replacement. The previous `ReferenceEquals` guard is dropped because the store's `Parent` setter already no-ops on an unchanged parent. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01TgSByQzKDng9vt79kCkRTC * fix(skia): Reference SkiaSharp.Views.Uno.WinUI explicitly Uno.Sdk.Private 7.0 only flows a SkiaSharp views package to the WinAppSDK head, where `SkiaSharp.Views.WinUI` supplies the `SkiaSharp.Views.Windows` namespace. On every other target framework the SkiaSharp feature resolves `SkiaSharp` and `SkiaSharp.Skottie` but no views package, so ShadowContainer failed to compile: error CS0234: The type or namespace name 'Views' does not exist in the namespace 'SkiaSharp' error CS0246: The type or namespace name 'SKPaintSurfaceEventArgs' could not be found Reference `SkiaSharp.Views.Uno.WinUI` for the non-WinAppSDK targets, which ships the same namespace for net10.0, mobile and the wasm/skia runtimes. The version tracks the SkiaSharp group pinned by the SDK. Verified by publishing the Material desktop sample, which is the path CI uses and the one that exposed the gap. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01TgSByQzKDng9vt79kCkRTC * docs(specs): Record the Uno 7.0 groundwork plan Captures what is verified green, the three remaining blocker groups, the ordered plan and the open TFM decision, plus the evidence behind each claim. Notable findings recorded: - The Uno checkout is stale versus the shipped package; verify against the nuspec's pinned commit or the package on disk. - `SkiaSharp.Views.Uno.WinUI` 4.151.1 is itself Uno 6 built, so the toolkit compiles but the host crashes on startup. `ShadowContainer` needs porting to `Uno.WinUI.Graphics2DSK`. - `Uno.WinUI.Markup` and `Uno.Extensions.Markup.WinUI` have no Uno 7 build at all, which gates both markup packages. - Mobile TFMs remain first class in Uno 7, so dropping them is a product decision rather than a forced consequence. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01TgSByQzKDng9vt79kCkRTC * docs(specs): Capture the Uno 7 verification lessons Three corrections from the retarget worth not repeating: - MSBuild resolves `msbuild-sdks` from the `global.json` nearest the entry point, so a solution build and CI's per-head publish can use different Uno versions. Run the literal pipeline command. - The local Uno checkout lagged the consumed package by five weeks; read the shipped assembly or the nuspec's pinned commit instead. - A clean build proved nothing twice over: an xmlns pointing at a namespace with no matching type still compiles, and a dependency that restores can still bind assemblies the new major version removed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01TgSByQzKDng9vt79kCkRTC * docs(specs): Note the unbuilt surface and the latent Uno 6 API uses The error log only covers the 8 library projects, so the runtime-test project and the sample heads are unverified, and skipped dependants produce no diagnostic at all. Roslyn also stops binding method bodies once declaration errors exist, so record the Uno 6 APIs that are absent from every Uno 7 assembly and will surface next: IsStatusBarTranslucent, SmoothScrollToIndex and SKXamlCanvas.Opaque. Also name $(UnoCSharpMarkupVersion) as the override lever for the markup packages, which have no Uno 7 build at all. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01TgSByQzKDng9vt79kCkRTC * docs(specs): Satisfy the markdown and spell-check gates The new spec files broke both Docs Validations jobs. - Add a language to the fenced stack trace (MD040). - Add the recurring domain terms to the cspell dictionary: commitsar, HarfBuzz, retarget, retargeted, TFMs, UXAML. - Reword the rest rather than widening the dictionary for one-off spellings. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01TgSByQzKDng9vt79kCkRTC * fix!: Drop MacCatalyst from the samples and the TFM options BREAKING CHANGE: `net10.0-maccatalyst` is no longer an available target. Uno 7.0 ships no MacCatalyst support. Uno 7.0 has no `Uno.Common.MacCatalyst.targets` and no `maccatalyst` folder under `buildTransitive`, so the SDK no longer recognises the platform — and therefore no longer excludes `Platforms/MacCatalyst/**` from the other target frameworks. The MacCatalyst entry point started compiling into every head: Platforms/MacCatalyst/Main.maccatalyst.cs(1,7): error CS0246: The type or namespace name 'UIKit' could not be found [SimpleSampleApp.csproj::TargetFramework=net10.0-browserwasm] Delete the three dead `Platforms/MacCatalyst` folders — no sample head has listed a maccatalyst TFM — and remove the `maccatalyst` option from `tfm-common-winui.props` and its hint in the crosstargeting sample, since selecting it could only produce a target framework Uno 7 cannot build. Verified with the CI WebAssembly command: the UIKit error is gone and the Material head now fails only on the two known Uno.Themes errors that the retargeted Themes package resolves. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01TgSByQzKDng9vt79kCkRTC * docs(specs): Record two more upstream Uno 7 blockers - `Uno.ShowMeTheXAML` has no Uno 7 build at any version, so it crashes the Themes sample apps at startup exactly as SkiaSharp.Views does here. - The XAML generator still types a ControlTemplate builder as returning the native view type on mobile, which Uno 7 removed (CS0407). It reproduces in Uno.Simple.WinUI only, so it is template-shape specific. Both were found on the sibling uno.themes PR and neither is fixable downstream. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01TgSByQzKDng9vt79kCkRTC * chore(deps): Target Uno.WinUI 7.0.0-dev.701 and Uno.Themes 9.0 - Uno.Sdk.Private and Uno.WinUI.DevServer move to 7.0.0-dev.701, the build Uno.Themes 9.0.0-dev.15 is compiled against. - Uno.Themes moves to 9.0.0-dev.15, the first line retargeted to Uno 7. The 8.0 line binds Uno.dll and Uno.UI.Toolkit, which Uno 7 no longer ships, and surfaces as CS0012 (CoreDispatcher, Color) in every sample head. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * fix(ci): Pin the SDK to the one uno.check provisions Provisioning wasm-tools downgrades the mono.toolchain.current manifest to uno.check's own (10.0.101), while the pipeline installed the 10.0.102 SDK. The workload resolver then asks for Microsoft.NET.Runtime.MonoTargets.Sdk 10.0.2, which is never installed, so every net10.0-ios library build in the packages stage fails with NETSDK1147 (reported as a missing wasm-tools workload). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * fix(skia): Render ShadowContainer through SKCanvasElement on Uno targets SkiaSharp.Views.Uno.WinUI 4.151.1 (and 4.152.0) is compiled against Uno 5 and binds Uno.dll and Uno.UI.Toolkit, which Uno 7 no longer ships. Referencing it made the toolkit compile but left the sample and runtime-test hosts unable to start. - Uno targets always render Skia content, so ShadowContainer uses its existing SKCanvasElement host unconditionally there. - The SKXamlCanvas fallback stays for WinAppSDK only, where the SDK already supplies SkiaSharp.Views.WinUI. - The explicit SkiaSharp.Views.Uno.WinUI reference and its central version go. - Drops the iOS `Opaque` setter, which targeted the removed UIView base. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * docs(specs): Record the mobile TFM decision and the Skia asset history - Library TFMs keep net10.0-android and net10.0-ios, like Uno.Themes 9.0. - Uno 6 Skia mobile heads ran each library's plain build; Uno 7 loads the mobile asset, so the mobile builds now follow the plain Skia path. - Refresh blockers: Themes 9.0 and the SkiaSharp views problem are resolved, the CI SDK pin is in, and the mobile port is split into four slices. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * refactor(navigationbar)!: Use the managed NavigationBar template on every platform BREAKING CHANGE: the `NativeDefaultToolkitFrame`, `NativeNavigationBarTemplate` (Uno.Toolkit and Material v1), `MaterialNativeNavigationBarTemplate` and `SimpleNativeNavigationBarTemplate` resource keys are removed, along with the implicit `IsNativeStyle` Frame styles. Styles that use `BasedOn` or `StaticResource` against any of them must drop the reference. Uno 7.0 renders iOS and Android through Skia, so there is no native `UINavigationBar`/`Toolbar` or native Frame left to template. Skia mobile heads on Uno 6 already ran the plain `net10.0` asset and so the `not_mobile` arms; those arms become unconditional so the mobile target frameworks keep that behavior now that Uno 7 loads their own asset. - Delete the ios/android native NavigationBar templates and the native Frame styles. `IsNativeStyle` no longer exists and failed with UXAML0001. - Make the managed `Template` setters and the back-icon `MainCommand` setter unconditional. - Material v2 and Simple: the AppBarButton size resources now always use the `*XamlNavigationBarHeight` values. - Drop the mobile-only `SafeArea.Insets="Top"` and `Height="NaN"` setters (Material v1/v2, Simple) and the Android-only elevation setters. They served the native bar; the Skia build never applied them. Status-bar insets are handled by the app (for example `SafeArea` on the page), as they already were on Skia mobile. The Fluent default style keeps its unconditional `SafeArea.Insets="Top"`. - Remove the xmlns declarations and `mc:Ignorable` tokens that are now unused. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * test(navigationbar): Run the NavigationBar runtime tests against the managed presenter The native-only tests asserted on `UINavigationBar`, `UINavigationItem`, `NativeFramePresenter` and the Android `Toolbar`, and the managed tests were gated off mobile. With one rendering path they now run on every target and assert on the `NavigationBarPresenter` and its `CommandBar` instead. - Remove the `__ANDROID__`/`__IOS__` gates (and the mobile `[Ignore]` on `NavigationBar_IsCollectible_AfterRemovedFromTree`). - `NavigationBar_Does_Render`, `_Within_AutoLayout` and `NavigationBar_Renders_With_Invalid_AppBarButton_IconElement`: assert the presenter's `CommandBar` renders with a non-zero size. - `Can_Set_MainCommand_Label_Or_Content` and `NavigationBar_Renders_BackItem_Within_AutoLayout`: assert the `CommandBar` hosts the page's `MainCommand` and renders it, instead of reading the iOS back title built from the previous page, which no longer exists. - `MainCommand_Use_LeftBarButtonItem_When_No_BackStack` becomes `MainCommand_Visible_In_Popup_Without_BackStack`: the managed equivalent of the iOS left bar button is the `MainCommand` shown for a Popup host. - `Can_Navigate_Forward_And_Backwards` waited for the original first-page NavigationBar to reload after `GoBack()`, which only held while the native presenter kept pages alive. Resolve the recreated page instead, and drop the 1 s delay that let the native push transition settle. - Delete `GetNativeNavBar`/`GetNativeNavItem`; `NavigateAndGetNavBar` is now available on every target. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * refactor(navigationbar)!: Delete the native NavigationBar and Frame presenters BREAKING CHANGE: `Uno.Toolkit.UI.NativeFramePresenter` (iOS and Android) and `Uno.Toolkit.UI.NativeNavigationBarPresenter` are removed. They hosted a `UINavigationController`/`UINavigationBar` and an AndroidX `Toolbar`, none of which Uno 7 can place in the visual tree. `Frame` uses its default template and `NavigationBar` its `NavigationBarPresenter` on every target. - Delete the Android and iOS renderers, `Renderer<TElement, TNative>`, `NavigationBarHelper`, both native presenters, and the UIKit helpers only they used (`UIColorExtensions`, `UIBarButtonItemExtensions`, `DictionaryExtensions`, `ImageHelper`). This clears the 14 Android CS0234, CS0246 and CS0115 errors in `Controls/NavigationBar`. - `NavigationBar`: drop `HAS_NATIVE_NAVBAR` and `HasNativePresenter()`. The back-stack subscription that keeps `MainCommand` visibility in sync, which the native build skipped, is now compiled everywhere. - `Subtitle` stays public; its XML doc now says the built-in templates do not display it (only the native Android bar did). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * chore(samples): Drop the native NavigationBar workarounds - `Shell.ExitNestedSample`: remove the iOS `UINavigationController` stack reset and the Android `BackStack.Clear()`. The managed `Frame` keeps no native controller stack or materialized back-stack pages, and every `ShowNestedSample` call clears the back stack after navigating (`clearStack: true`, or the empty-frame default), so a stale stack cannot leak into the next sample. Desktop and WebAssembly never had the branch. - Remove the `ios:` centering attributes from the two DataContext nested NavigationBar pages. They imitated the native `UINavigationBar` title centering; the managed bar lays content out the same way everywhere. - Remove the unused `ios` xmlns and `mc:Ignorable` tokens from those pages and from the Fluent nested page. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * docs(navigationbar): Document the managed NavigationBar for Uno 7 - Replace the native-mode documentation (modes, per-platform property tables, iOS placement rules, `NavigationBarHelper`, native `AppBarButton` limits and the native FAQ entries) with the single template-based behavior. - Add a "Status Bar and Safe Area" section: the default style insets the bar, the Material and Simple styles rely on `SafeArea` on the page. - Add a "Migrating from the native mode" section listing the removed types, resource keys and behavior differences. - Drop the removed `MaterialNavigationBarElevation` lightweight styling row. - Set `MainCommandMode="Action"` in the burger menu FAQ example; in the default `Back` mode the button stays hidden without a back stack. - Update the NavigationBar walkthrough the same way. - Delete the 30 `navbar-android-*`/`navbar-ios-*` screenshots of the native bars, which nothing references any more. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * test(navigationbar): Assert the MainCommand name derived from Label or Content - Replace the asserts that read back the Label/Content the test pages had just set with the automation name of the MainCommand hosted by the presenter's CommandBar. - The Material v2 and Simple back buttons are icon-only, so the accessible name is where a MainCommand's Label or Content still surfaces on every style; it is the managed counterpart of the iOS back button title the native tests read. - Covers Can_Set_MainCommand_Label_Or_Content and NavigationBar_Renders_BackItem_Within_AutoLayout. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * refactor(tabbar): Track FlipView scrolling through its ScrollViewer everywhere Uno 7 renders FlipView with its managed template on Skia Android and iOS, so the native ViewPager and NativeFlipView that the mobile partials hooked into no longer exist. - Delete TabBarSelectorBehaviorState.Android.cs (ViewPager.PageScrolled) and .iOS.cs (UIScrollView delegate swap over FlipViewSource). - Compile the ScrollViewer.ViewChanged implementation on every target. Skia mobile heads already ran it, through the plain net10.0 asset. - Drop a leftover Console.WriteLine that logged on every ViewChanged. TabBarSelectorBehaviorState is internal, so there is no API impact. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * fix(tabbar): Implement ScrollableHelper smooth scrolling on Uno targets ScrollableHelper.SmoothScrollTop/SmoothScrollBottom called ListView.SmoothScrollToIndex on Android/iOS, which Uno 7 removed, and threw NotImplementedException everywhere else. TabBarItemExtensions routes ScrollToTop through it, so re-selecting a tab over a ListView threw on desktop, WASM and the Skia mobile heads. - Uno targets now animate the ListView's ScrollViewer to the start or to the end of its scrollable extent. With a virtualizing panel the bottom target is the panel's estimated extent. - The WinAppSDK implementation is unchanged. - Add runtime tests for both helpers and for ScrollToTop over a ListView and a ScrollViewer content host. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * refactor: Walk only the managed visual tree in VisualTreeHelperEx UIElement no longer derives from UIView or Android.Views.View in Uno 7, so there is no native barrier left for a second tree walker to cross. - Remove VisualTreeHelperEx.Native and the platform `_View` alias. - TabBarItemExtensions resolves its content host with the managed walker on every target. - Remove the native-view layout details behind TREEGRAPH_VERBOSE_LAYOUT and PrettyPrint.FormatViewRect(Android.Views.View), which served only them. NavigationBarHelper.iOS.cs still calls VisualTreeHelperEx.Native; that file belongs to the native NavigationBar renderer being removed separately. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * fix: Remove the Android-only new modifiers on Click and Elevation With UIElement no longer deriving from Android.Views.View, these members hide nothing and the net10.0-android build fails with CS0109. - TabBarItem.Click, Chip.Elevation, Card.Elevation and CardContentControl.Elevation lose their `#if __ANDROID__ new`; the members are unchanged. - TabBarItem.GetContentTemplateRoot drops a cast that only existed because ContentTemplateRoot used to be typed as the native view. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * fix(styles): Make the managed FlipView template unconditional NoArrowsFlipViewStyle set its template only off mobile, leaving the native FlipView in place on Android and iOS. Uno 7 has no native FlipView, and Skia mobile heads already used this template. - Unwrap the not_mobile template setter. - Remove the mobile/not_mobile declarations and the now empty mc:Ignorable. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * fix(styles): Drop the mobile arms of the TabBar, segmented and Chip styles The mobile arms were written for the native renderers; the not_mobile arms are what Skia Android and iOS heads have been running. With Uno 7 loading the mobile assets on those heads, the not_mobile arms become unconditional. - Material v1 BottomTabBar and TopTabBar, Cupertino BottomTabBar, SegmentedControl and SlidingSegmentedControl: delete the mobile styles and keep the not_mobile ones. The mobile item styles omitted the PointerOver and Pressed visual states; the Material bottom bar and FAB item arms did not carry the uno#7393 layout workaround; the Material top bar item arms used StaticResource for the border brush and a PointerStates group name. The tab bar arms were otherwise identical. - Cupertino BottomTabBar loses its mobile duplicate of CupertinoSegmentedStyle; the key is still defined by SegmentedControl.xaml. - Material v2 TabBar, Simple TabBar and Simple Chip: unwrap the not_mobile PointerOver/Pressed visual states. - Remove the platform namespace declarations these files no longer use, with their mc:Ignorable tokens. No resource key is added or removed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * chore(styles): Remove unused platform namespaces from the Chip styles - Chip.xaml and ChipGroup.xaml (base, Material v1 and v2) declared android, ios, wasm, macos, win and not_win without using them. `macos` is no longer part of the Uno 7 conditional vocabulary. - Drop the matching mc:Ignorable tokens, and mc:Ignorable/xmlns:mc where nothing was left. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * test(chipgroup): Run the ChipGroup selection tests on Android again The three tests were ignored on Android in #1296 for #1300, while the sample heads still used the native Android renderer. In each failure the Single-mode selection stayed null where item 0 was expected. ChipGroup only enforces that selection once it is loaded and its containers exist (`IsReady`), which is timing the native renderer drove differently. The same managed pipeline passes on desktop and WASM, and Uno 7 runs it on Android too. - Remove the `#if __ANDROID__ [Ignore]` from VariousMode_TapSelection, Single_SetSelection and Initial_Selection. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * test(tabbar): Drop the Inconclusive screenshot guard from the indicator test Verify_Indicator_Display_On_Selection skipped itself with Assert.Inconclusive when RenderTargetBitmap was unavailable, which only happened on the native renderers. Uno 7 renders through Skia on every Uno target and WinAppSDK supports it too, so the guard is dead, and AGENTS.md forbids Inconclusive. - Remove the IsScreenshotSupported check; the test body is unchanged. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * fix(shadows): Drop the mobile-only deferred canvas invalidation - Skia Android and iOS lay out synchronously, like the desktop targets, so ShadowContainer now resizes its canvas immediately there too instead of queueing the resize and an extra InvalidateMeasure on the dispatcher. - Removes the unused Android.Views using. - The ShadowContainer runtime tests that were excluded from Android and iOS now run there as well. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * fix(safearea): Compute insets the same way on Skia Android and iOS Uno 7 Skia Android and iOS heads now load this library's mobile build. They must compute insets like the plain build those heads have always run, from Window.Bounds and ApplicationView.VisibleBounds. - Drops the Android status bar offset built on XamlWindow.IsStatusBarTranslucent(), which Uno 7 removed. Skia Android windows are edge-to-edge: VisibleBounds already excludes the system bars and display cutouts, and InputPane.OccludedRect is measured from the window bottom, so the keyboard adjustment needs no nav bar correction. - Drops the queued Android InvalidateMeasure after applying insets; managed layout already invalidates the owner and its ancestors. - Drops the iOS SizeChanged hook for NSTextContainer text layout (uno#2836) and the native ListView ItemsPresenter skip, which only applied to native rendering. - The Android bounds-transition guard stays: it is a runtime OperatingSystem.IsAndroid() check that Skia Android heads already relied on. - Android runtime tests now exercise the edge-to-edge path. The translucent window flag tests become SystemBars_Insets_Applied, SystemBars_Insets_Updated_WhenBarsHidden and BottomInset_NotInflated_WhenSystemBarsHidden, which hide the system bars through full screen mode instead of toggling FLAG_TRANSLUCENT_*, which has no effect on an edge-to-edge window. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * docs(safearea): Describe the edge-to-edge Android window - Notes that Android apps are displayed edge-to-edge by default on Uno Platform 7, so the system bars and cutouts overlap the window. - States that insets are computed the same way on every platform, from the window bounds and VisibleBounds, plus the keyboard with SoftInput. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * fix(splash): Show the Skia splash screen on Android and iOS Uno 7 Skia Android and iOS heads now load this library's mobile build instead of the plain one. That build still carried the native renderer implementations, while the managed one they had been running could not find the splash screen there: those heads embed no Package.appxmanifest. - ExtendedSplashScreen.cross.cs now compiles on every target and replaces the Android bitmap capture (AdaptNative, window theme fallback, system bar hiding) and the iOS launch storyboard hosting. The unreachable macOS stub and the __SKIA_OR_WASM__ define go. - When no manifest provides a splash image, the splash screen is read from the UnoSplash.def resource Uno.Resizetizer embeds for an UnoSplashScreen on every head, looked up in the entry and Application assemblies (Android has no managed entry assembly). The image sits at the app root, and a BaseSize sizes the logo like the generated iOS launch screen. - SplashIsEnabled checks the Android and iOS flags on those platforms, so apps that selected them keep their splash screen; Skia now means the desktop targets. - ExtendedSplashScreen.Init(Activity) keeps its signature and installs the AndroidX splash screen, with the pre-Android 12 theme workaround, which the Theme.SplashScreen-based starting themes still need. - Drops the CS0109 `new` on Window, which hid the removed UIView.Window. - Runtime tests: the splash smoke and leak tests run on Android and iOS, and new tests cover the platform flags, the definition parsing and loading the embedded definition's image. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * docs(splash): Describe the splash screen on Uno Platform 7 mobile targets - Explains which platform each SplashScreenPlatform flag selects now that every target renders with Skia. - Documents where the splash image and color come from on each platform, including the Uno.Resizetizer UnoSplashScreen definition on Android and iOS. - Rewrites the Android setup: Init installs the AndroidX splash screen, which InstallSplashScreen already does in apps created from the Uno Platform templates, and no longer captures the native splash or hides the system bars. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * test(safearea): Reproduce the bounds race with a status bar background - BottomInset_NotInflated_WhenSystemBarsHidden could not fail: hiding the bars leaves Window.Bounds unchanged on the edge-to-edge window and only grows VisibleBounds, so the bottom inset can only shrink. - Replace it with BottomInset_NotInflated_WhenStatusBarBackgroundSet, the original trigger. From API 35, a StatusBar background shrinks Window.Bounds and moves VisibleBounds up in one native size change, and Uno raises VisibleBoundsChanged before it assigns the new Bounds. - The test records every applied bottom inset, because the stale-bounds inset is transient, and it requires Window.Bounds to change on API 35+ so it cannot silently stop exercising the race. - Add BottomInset_AutoRowShrinks_WhenSystemBarsHidden: the Auto row must shrink with the padding now that the Android parent InvalidateMeasure is gone. - Note in the guard comment why the race still exists on Uno Platform 7. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * docs(safearea): Record the Uno Platform 7 bounds race in the guard recap - List the renamed Android UI tests and what each one covers. - Explain why the race still exists on Skia Android, which transitions hit it, and why the Android parent InvalidateMeasure was removed. - Update the rationale for the runtime OperatingSystem.IsAndroid() check. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * fix(splash): Build the mobile splash screen without probing app manifests - On Android and iOS, read the Uno.Resizetizer splash definition first. Those heads embed no app manifest, so the two failing manifest lookups only delayed the splash screen after the operating system one was dismissed. - Read the embedded definition synchronously, so the splash screen content is set while the template is applied, before the first frame. - Keep the manifest-first order on the other targets. - Add a mobile runtime test asserting the splash screen is built without awaiting. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * docs(splash): Describe the recreated splash screen in the walkthrough - The walkthrough no longer mentions capturing the native splash screen: the control recreates it with XAML, and links to the appearance section. - Point the Android 12+ guidance to the Setup on Android section. - Mention the Uno.Resizetizer fallback for Windows and desktop manifests without a splash image. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * test(shadows): Drop the Assert.Inconclusive screenshot guards - RenderTargetBitmap is implemented on every target these tests run on (all Uno Platform 7 targets render with Skia, plus WinAppSDK), so the guards were dead code. - A target without screenshot support now fails these tests instead of hiding them as inconclusive. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * refactor(shadows): Merge the redundant canvas invalidation wrapper - Without the mobile dispatch, InvalidateCanvasLayout only repeated the guard of InvalidateCanvasLayoutSize before calling it, so the two methods are now one. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * fix(samples): Build the Android host through UnoPlatformHostBuilder - Uno 7 makes `NativeApplication.CreateHost()` abstract and drops the `Func<Application>` constructor, so the Android heads failed with CS0534 - Override `CreateHost()` in the Material, Cupertino and Simple heads, the Android equivalent of `Main` on the other targets (matches Uno.Themes and the Uno 7 app template) Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * refactor(samples): Remove native-renderer-era code paths - `SamplePageLayout.GetRelativeOffset`: drop the `__IOS__` arm written for the native UIScrollView (Skia iOS uses the managed ScrollViewer, like every other Uno target) and the unreachable UWP `NETFX_CORE` arm - Drop the unused `using UIKit` blocks from the FlipView and SafeArea pages - Drop `__MACCATALYST__` from the logging provider selection; Mac Catalyst is no longer a sample target Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * chore(samples): Remove the iOS Calabash and Objective-C UI test backdoors - `Xamarin.Calabash.Start()` never compiled: `HAS_TESTCLOUD_AGENT` is defined nowhere and no project references `Xamarin.TestCloud.Agent`, so drop the call and its central package version - The `[Export]` backdoors on `App` only registered with the Objective-C runtime while `Application` derived from `UIApplicationDelegate`; under Skia iOS it is a plain managed type, so they were unreachable. Their consumer, the Xamarin.UITest project, was removed in #1544 - The Android `[Export]` and WebAssembly `[JSExport]` hooks still build and still work under Skia, so they stay Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * refactor: Remove unused conditional XAML prefix declarations - Uno 7 no longer defines the `xamarin` and `netstdref` prefixes, and a prefix in neither the include nor the exclude list is silently discarded, so their declarations only obscure what is live - Drop every declared-but-unused `xamarin`, `netstdref`, `ios`, `android`, `wasm`, `not_wasm`, `not_android` and `win` prefix in the sample shell, sample styles, the Chip and bar sample pages, both `Generic.xaml` files and `DrawerControl.Enhanced.xaml`, with their `mc:Ignorable` tokens - Drop `mc:Ignorable` and `xmlns:mc` where nothing else was left - No markup changes: the samples carry no `mobile:`/`not_mobile:` arms, and the used `win:`/`not_win:` (Uno vs WinAppSDK) arms stay - The `ios:` arms in the NavigationBar nested pages are left to the NavigationBar port Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * chore(build): Remove the unused macOS and Mac Catalyst plumbing - `PlatformItemGroups.props`: drop `IsMacOS`, `IsCatalyst` and `IsIOSOrCatalyst` with their define, OS-floor and `macOS`/`iOSmacOS` platform-extension groups; no target framework can reach them since Mac Catalyst was dropped, and no file uses those suffixes - Delete `xamarinmac-workaround.targets`, which nothing imports - Drop the unread `Build_MacOS` switch and the `macos` override hint - The `XAMARIN*`/`__ANDROID__` defines and the `mobile`/`not_mobile` XAML vocabulary stay: library code still depends on them Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * test: Drop the native-renderer-era platform gates Skia Android and iOS now run the toolkit's mobile assets, and render like desktop, so exclusions written for native views no longer describe them: - `DrawerTests.IsOpen_FromNonUIThread`: drop the iOS `[Ignore]`, written because UIKit rejected off-thread `UIView.Alpha` writes. Under Uno 7 the same off-thread `Opacity` write fails on every Skia target, desktop included (`NativeDispatcher.CheckThreadAccess` in the composition visual), so this is a cross-platform `DrawerControl` defect rather than an iOS one - `DrawerFlyoutTests.OpenDirection_Layout`: drop the Android `[Ignore]` for uno#14420 (native flyout sizing, since fixed) and apply the layout-settle delay on every Uno target instead of excluding `__MOBILE__` - `AutoLayoutTest.When_Padding` and `When_Padding_CounterAxis`: restore the negative-offset rows excluded on mobile for uno#11774 (native `TransformToVisual`); drop the Android `Border` wrapper workaround for #1051 in `When_Hug_With_CounterAlignment` - `LeakTest`: drop the dead macOS gates and the unused `UIKit`/`AppKit` usings, assert zero retained controls on iOS too, and report retained types on every target (the class stays `[Ignore]`d for #429) Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * fix(test): Exclude the browser from the collectible-type leak test at runtime - `__WASM__` is never defined for `Uno.Toolkit.RuntimeTests`: its `net10.0` build is shared by the desktop and WebAssembly heads, so the gate never excluded the browser and the test would run there - Replace it with an `OperatingSystem.IsBrowser()` check; Android and iOS keep their compile-time exclusion, which targets the Mono runtime rather than native rendering Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * fix(samples): Build the Debug heads without Hot Design and App MCP - In Debug the SDK references Uno.UI.HotDesign 1.20.0-dev.750 and Uno.UI.App.Mcp 1.3.0-dev.98, whose only assets are `net9.0` builds binding Uno 6 assemblies (`Uno`, `Uno.UI.Toolkit`); every Debug head failed with CS0012 (`CoreDispatcher` in `Uno`), including the Hot-Reload Runtime Tests CI job's Debug desktop build - Set `UnoDisableHotDesign` and `UnoDisableMCPSupport` for the sample heads and drop the `Window.UseStudio()` calls, which Hot Design provided - Release is unaffected (the SDK already excludes both assets when optimizing) - Restore both once Uno 7 builds ship Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * fix(drawer): Apply off-thread IsOpen changes on the UI thread - On Uno 7 Skia targets, composition visuals throw InvalidOperationException ("marshalled for a different thread") when a property like `Opacity` is written off the UI thread, so setting `DrawerControl.IsOpen` from a background thread threw on every Skia target, desktop included - Schedule those changes on the control's dispatcher and snap to the latest `IsOpen` there, keeping the existing rule that off-thread changes do not animate - Drop the thread check from the animation condition: every caller that animates now runs on the UI thread - Covered by `DrawerTests.IsOpen_FromNonUIThread`. On the Release desktop head with engine retries disabled, it failed 5 of 5 runs before this change and passed 5 of 5 after it Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * test: Restore the iOS collection tolerance in LeakTest - 7412dc81 removed the iOS-only `activeControls < count` assertion along with the native-renderer gates. The tolerance is about GC timing, not native views, and Skia iOS still runs on Mono - Uno 7's own `Given_FrameworkElement_And_Leak` still tolerates retained instances on Skia iOS and Android, which confirms the GC timing issue is still there - Restore the tolerance with an `OperatingSystem.IsIOS()` check. Every other target still asserts zero retained controls, and the class stays ignored (#429) Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * test: Stop reporting the collectible-type leak test as passed on the browser - Revert the `OperatingSystem.IsBrowser()` early return from 86d320c8. It made the test pass on the browser without asserting anything, which is equivalent to the `Assert.Inconclusive` that AGENTS.md forbids. The engine has no runtime skip other than `[Ignore]` - The dead `__WASM__` define stays out of the gate. A Debug WebAssembly run now executes the test, as it already did before 86d320c8, and reports the real result. The WASM CI lane publishes Release, so it never compiles this test Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * test: Correct the DrawerFlyout layout-settle delay rationale - The comment still said the delay was only needed on wasm, but 7412dc81 applied it to every Uno target - State why it runs everywhere: every Skia target, mobile included, already ran the plain build with this delay before Uno 7, so keeping it avoids an untested timing change Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * docs(navigationbar): Keep the NavigationBar size and elevation resources documented The elevation and height resources stay defined for compatibility, so the migration notes no longer list them as removed. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * test(shadows): Drop the Inconclusive screenshot guard from the reload test RenderTargetBitmap is implemented on every Uno 7 target, so the guard could only hide a real failure. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * docs: Refresh the platform guidance in AGENTS.md for Uno 7 - Drop net9.0, Mac Catalyst, macOS and Build_MacOS, which no longer exist. - Note that Skia mobile heads load the mobile assets, which must behave like the plain build, and that __WASM__ never reaches the net10.0 libraries. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * fix: Satisfy the iOS trim analyzer for the reflection-based lookups The iOS SDK turns on the trim analyzer for every project, and the Uno 7 ApiInformation annotations surface new diagnostics that TreatWarningsAsErrors makes fatal once the native code is gone. - IL2122: qualify the StatusBar type name with its Uno 7 assembly (Uno.WinRT), which ApiInformation.IsTypePresent resolves the same way. - IL2070/IL2075: suppress, with justification, on the name-based dependency property lookups; a trimmed member already resolves to null and is handled. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * chore(deps): Build the Markup packages against C# Markup 7.0.0-dev.33 Uno.Sdk.Private 7.0.0-dev.701 still pins the Uno 6 C# Markup line (6.7.0-dev.16), whose assemblies reference types Uno 7 removed (UNOB0020). 7.0.0-dev.33 is built against Uno 7. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * test(itemsrepeater): Scroll the incremental-loading tests to the current end Uno 7's ScrollViewer keeps a ChangeView request as intent and re-clamps it as the extent grows, like WinUI (unoplatform/uno@385b6146a9). Requesting a 10,000 px offset therefore kept loading batches until that offset was reachable, so the tests saw 375 items instead of 50 and IsLoading never settled. The tests now target the ScrollableHeight/ScrollableWidth at the time of the scroll, which is what "scroll to the end" meant. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * docs(specs): Record the mobile port results and remaining verification Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * fix(ci): Key the .NET install cache on the SDK version The dotnet install cache key did not include DotNetVersion, so the packages job restored the previously cached 10.0.102 install and the 10.0.101 pin never took effect: NETSDK1147 persisted on every net10.0-ios project. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * docs(specs): Record the Skia Android runtime-test results Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01SQBL3dpwkP1vsVzy7Kcijc * fix(build): Evaluate the libraries for net10.0 in the hot-reload workspace The Uno 7 dev-server narrows only the head project to the running flavor and loads every TargetFrameworks entry of the referenced libraries. The android and ios flavors were never built in a desktop hot-reload session, so the initial emit failed ("Image is too small") and hot reload was disabled, which failed 39 of the 45 hot-reload runtime tests in CI. - Inside the workspace (UnoIsHotReloadHost) and without an explicit TargetFrameworkOverride, the libraries evaluate ne…
GitHub Issue (If applicable): related to unoplatform/uno.extensions#3120 (this is the Toolkit counterpart)
PR Type
What is the current behavior?
All
SystemThemeHelpermembers resolve theme reads/writes throughXamlRoot.Content- the root visual of the XamlRoot. When an app is hosted under a XamlRoot it does not own (an inner Uno app loaded via a collectible AssemblyLoadContext, whose content is re-parented into the host's shared XamlRoot - the inner app has no XamlRoot of its own),XamlRoot.Contentis the host's root: toggling the theme re-themes the host and reads report the host's theme. Standalone apps are unaffected (window.Content == XamlRoot.Content).unoplatform/uno.extensions#3121 fixes the same bug in
ThemeService.What is the new behavior?
Additive
FrameworkElementandWindowoverloads ofGetRootTheme/IsRootInDarkMode/SetRootTheme/SetApplicationThemethat read/write the theme on the caller-supplied app root (typicallywindow.Content).XamlRootoverloads remain the non-obsolete, default API for normal situations (nothing is obsoleted); their behavior is unchanged, and they now delegate internally to the element overloads.Set*is a no-op with a warning log;Get*falls back to the OS theme.GetAppContentRoot(this FrameworkElement)walking up to anAlcContentHostboundary), at which point resolution can move to the platform API.Runtime tests (Skia desktop head, all green): hosted topology in both directions (theme lands on the app root; host and
XamlRoot.Contentuntouched; reads observe it), subtree inheritance,Windowoverload, null arguments; pre-existingThemeInitTestsstill green.PR Checklist
Please check if your PR fulfills the following requirements:
Compatibility note: binary-compatible, additive minor. One theoretical source-compat edge inherent to adding overloads: a literal
nullfirst argument (e.g.SetRootTheme(null, true), previously a no-op) now fails with CS0121 ambiguity; workaround is a cast such as(XamlRoot?)null. Method groups of these members also lose their natural type.Other information
Internal Issue (If applicable): SL-2740
🤖 Generated with Claude Code