Skip to content

Apply the Padding modifier to TextBlock (#950) - #970

Merged
Alexandre Zollinger Chohfi (azchohfi) merged 10 commits into
mainfrom
azchohfi-widen-padding-gate-to-textblock
Jul 31, 2026
Merged

Alexandre Zollinger Chohfi (azchohfi) merged 10 commits into
mainfrom
azchohfi-widen-padding-gate-to-textblock

Conversation

@azchohfi

@azchohfi Alexandre Zollinger Chohfi (azchohfi) commented Jul 31, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #950.

The bug

.Padding(...) is a common modifier available on every Element, but Reconciler.ApplyModifiers only wrote the resolved value to Control, Border and StackPanel. WinUI.TextBlock derives from FrameworkElement, not Control, so every arm missed and the value was discarded silently — no warning, no exception, no diagnostic. WinUI does declare TextBlock.PaddingProperty, so there was always a real target to write to.

TextBlock("Hello").Padding(16)   // compiled fine, did nothing

The fix

Widen the gate rather than routing TextBlockElement through its descriptor.

The descriptor route — which the issue body originally suggested, and which is how RichTextBlock reaches Padding today — reads the raw e.Padding slot. That would have left .PaddingInlineStart(...) / .PaddingInlineEnd(...) broken, because they share the same gate through the basePad fallback, and it would only have covered TextBlockElement rather than every element that mounts a TextBlock.

Three sites in ApplyModifiers gain a WinUI.TextBlock arm: the basePad ternary that seeds the BiDi inline overlay, the set arm, and the reset arm.

The reset arm turned out to be unreachable

var resolvedPadding = m.Padding ?? oldM?.Padding;
...
else if (!resolvedPadding.HasValue && oldM?.Padding.HasValue == true)

The two conjuncts contradict each other — !resolvedPadding.HasValue requires oldM?.Padding to be null, the second requires it non-null — so dropping .Padding(...) from a re-render never cleared anything. That was harmless while padding never reached TextBlock; shipping the gate widening on top of it would have introduced a fresh padding bleed on the very control this PR is about, so it is repaired here rather than deferred.

The guard is now !wantsPadding && hadPadding over two new locals. The ?? oldM?.Padding fallback stays — basePad still needs it — and hadPadding also covers the inline-only case (oldM.Padding null but an overlay was written) that oldM?.Padding.HasValue missed.

All four reset arms now call ClearValue instead of writing a local new Thickness(0), so a Button that drops .Padding(...) returns to its themed padding instead of being flushed to zero.

Pooling

Mount calls ApplyModifiers(fe, oldM: null, ...), so the reset arm can never fire on a freshly rented control. ElementPool.CleanElement clears TextBlock.PaddingProperty to stop a pooled TextBlock handing its padding to the next element that sets none.

Analyzer + samples

ModifierTable's Padding gate is widened to match — ModifierTableIntegrityTests Roslyn-parses ApplyModifiers and demands exact set equality, so this is forced, not optional. That clears all 58 REACTOR_MOD_003 hits in samples/ with no sample edits; the scoped exemption list drops from 84 hits / 32 files to 26 / 14. Re-measured on the rebased base (#961 landed on main mid-review and moved the baseline) with dotnet build Reactor.slnx -c Debug, the scoped severity temporarily flipped back to warning, deduplicated on file:line:col. The minesweeper .Set(tb => tb.Padding = new Thickness(0)) workaround — whose comment said it existed only because .Padding() no-opped there — becomes .Padding(0).

Docs

Four shipped docs hard-coded the gate and were wrong in two directions: they excluded TextBlock (which this PR adds) and VStack/HStack (which have worked since StackPanel joined the gate). skills/figma.md had turned that into a codegen rule, so generated Figma output was emitting a wrapper Border for every padded auto-layout frame. Review also caught a second, unrelated error on the same lines: figma.md documented the 2-arg overloads as .Padding(vertical, horizontal) when the API is (horizontal, vertical) (ElementExtensions.cs:45-50), which would have produced silently transposed spacing. Fixed, and the rest of the tree was checked for the same inversion — figma.md was the only affected surface. skills/ and plugins/reactor/** are packed into the product, so the wrong guidance shipped. Grid and Image genuinely have no Padding property and stay marked unsupported.

⚠️ Behaviour change

Code that relied — knowingly or not — on .Padding() being inert on a TextBlock now gets real padding, so some layouts will shift. That is the point (those call sites were asking for padding and not getting it), but it is not invisible. Noted in CHANGELOG.md.

Testing

7 selftest fixtures / 48 checks in Issue950TextBlockPaddingFixture.cs, covering mount, asymmetric values, update-in-place, unset, BiDi inline resolution for both InlineStart and InlineEnd in both flow directions, basePad preservation under LTR and RTL, pool recycling, ClearValue-vs-zero on all four gated types, the setter-ownership rule, and the untouched RichTextBlock descriptor path. Headless unit tests cannot construct a Microsoft.UI.Xaml.TextBlock (COMException), so this tier is the only one that can read the property back.

Mutation-checked rather than assumed: reverting the reset guard reddens 5 checks, deleting the TextBlock set arm reddens 8, and removing the pool reset reddens exactly 2 — three independent, non-overlapping pins.

Check Result
dotnet test tests/Reactor.Tests 12,940 passed / 0 failed / 64 skipped
Issue950 selftests 7 fixtures, 48 checks, 0 failures
Full selftest suite 4 failures, all reproduced on a stashed clean baseline
CI on the final head 20/20 checks green
dotnet build Reactor.slnx 0 errors, 0 REACTOR_MOD_003 (2 pre-existing WIN2D0001)

Docs accuracy pass

Widening the gate made several prose claims wrong, and surfaced one that was already wrong. All corrected here:

  • SpacingPage.cs told the reader .Padding() "only works on Border and Control elements" and that "VStack and HStack only support .Margin()" — contradicting the compatibility table sixty lines below it in the same file. Wrong even before this branch, for StackPanel.
  • Four sites claimed Grid has no Padding. It does — ValueList.cs:42 writes g.Padding through .Set, and this branch's own Fires_For_Padding_On_TextBlock test says the gate is "the four types rather than anything that has a Padding property". What Grid lacks is a place in the gate. Fixed in SpacingPage.cs, skills/design.md, its plugins/reactor/skills/reactor-design mirror, and skills/figma.md.
  • skills/figma.md documented the two-argument .Padding/.Margin overloads as (vertical, horizontal). The source is (horizontal, vertical) and says so in a comment (ElementExtensions.cs:45-48).

The gallery search index is regenerated where the indexed snippet changed.

Deliberately out of scope → #965

Measured with throwaway probe fixtures against a HEAD~1 baseline, and confirmed byte-identical before and after this branch:

  • The Margin reset arm has the identical dead-guard shape.
  • Changing an inline padding to match the physical value skips the write; toggling FlowDirection on one instance accumulates edges. Both are the raw-oldM.Padding comparison plus the live-basePad read, and need previously-resolved-value tracking to fix properly.
  • Control/Border/StackPanel padding leaks across pool reuse. Confirmed real, but the fix forces Padding to poolReset: true, which escalates every .Set(c => c.Padding = ...) from REACTOR_MOD_002 (Info) to REACTOR_POOL_001 (Warning) across samples and user code — its own samples sweep, not a drive-by.

One related behaviour is kept and pinned rather than deferred: making the reset reachable means a render that drops .Padding(...) and writes through .Set(...) instead ends with the property cleared, because ApplySetters runs before ApplyModifiers. Width was measured to answer identically on the pre-change baseline (.Width(120) → .Set(w = 55) yields NaN), so this brings Padding into line with the family rather than inventing a rule. ModifierResetOutranksASetterWrite pins it, including a Width arm, so any future change has to decide for the whole family at once.

Copilot AI previously approved these changes Jul 31, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Ready to approve

The core reconciler behavior change is scoped and consistently reflected across pool cleanup, analyzers/tests, docs/samples, and it’s backed by targeted selftest coverage for the new and repaired semantics.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Pull request overview

This PR fixes issue #950 by ensuring the common .Padding(...) modifier (including the BiDi-aware .PaddingInlineStart/End(...) overlay path) is actually applied to Microsoft.UI.Xaml.Controls.TextBlock, and by repairing the previously-unreachable padding reset logic so padding is correctly cleared (via ClearValue) when dropped on re-render.

Changes:

  • Extend Reconciler.ApplyModifiers padding handling to include TextBlock, and fix the reset guard so dropping padding clears the DP instead of leaving stale values (and restores themed padding via ClearValue).
  • Prevent pooled TextBlock instances from leaking padding across reuse by clearing TextBlock.PaddingProperty in ElementPool.CleanElement.
  • Sync analyzers/tests, docs/skills guidance, samples, and changelog to reflect the widened padding gate and updated behavior; add selftest fixtures covering mount/update/unset, BiDi inline resolution, pool reuse, and ClearValue vs local-zero semantics.
File summaries
File Description
tests/Reactor.Tests/AnalyzerTests/NoOpModifierAnalyzerTests.cs Updates expectations and adds coverage so REACTOR_MOD_003 reflects the new Padding gate and doesn’t misreport TextBlock.
tests/Reactor.Tests/AnalyzerTests/ModifierAvailableAnalyzerTests.cs Extends stubs/tests so REACTOR_MOD_002 availability for Padding includes TextBlock.
tests/Reactor.AppTests.Host/SelfTest/SelfTestFixtureRegistry.cs Registers the new issue #950 selftest fixtures (name list + constructor switch arms).
tests/Reactor.AppTests.Host/SelfTest/Fixtures/Issue950TextBlockPaddingFixture.cs Adds selftests validating TextBlock padding application, BiDi inline overlay behavior, correct clearing semantics, and pool reuse correctness.
src/Reactor/Core/Reconciler.cs Applies padding to TextBlock, fixes reset reachability, and uses ClearValue to restore themed padding on unset.
src/Reactor/Core/ElementPool.cs Clears TextBlock.PaddingProperty on pool return to prevent padding leakage across reuse.
src/Reactor.Analyzers/NoOpModifierAnalyzer.cs Updates analyzer documentation/comments to match the new control gate set.
src/Reactor.Analyzers/ModifierTable.cs Widens the padding control-gate table to include TextBlock and updates related explanatory text.
skills/figma.md Corrects guidance so generated Figma output can apply padding directly to stacks (and notes Grid still lacks padding).
skills/design.md Updates design guidance/examples/compat table to reflect that padding works on TextBlock and VStack/HStack, not on Grid/Image.
samples/ReactorGallery/reactor-search-index.json Regenerates the gallery search index snippet to match updated spacing guidance text/examples.
samples/ReactorGallery/ControlPages/DesignGuidance/SpacingPage.cs Updates gallery UI content to reflect the corrected padding support matrix and examples.
samples/apps/minesweeper/Components/CellComponent.cs Replaces the prior .Set(tb => tb.Padding = ...) workaround with .Padding(0) now that it’s effective on TextBlock.
samples/.editorconfig Updates REACTOR_MOD_003 debt commentary and scoped exemption list counts after the padding gate change.
plugins/reactor/skills/reactor-design/SKILL.md Mirrors skills/design.md guidance updates in the shipped agent-kit skill.
plugins/reactor/skills/reactor-build-and-check/SKILL.md Updates the documented REACTOR_MOD_003 padding gate description to include TextBlock.
CHANGELOG.md Documents the behavior change and related fixes (reset reachability + ClearValue behavior + analyzer messaging).
Review details
  • Files reviewed: 17/17 changed files
  • Comments generated: 0
  • Review effort level: Lite

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

`.Padding(...)` compiles on any `Element` but `Reconciler.ApplyModifiers` only
wrote the resolved value to `Control`, `Border` and `StackPanel`. `WinUI.TextBlock`
derives from `FrameworkElement`, not `Control`, so every arm missed and the value
was discarded silently — no warning, no exception. WinUI does declare
`TextBlock.PaddingProperty`, so there was always a real target to write to.

Widen the gate rather than routing `TextBlockElement` through its descriptor. The
descriptor route reads the raw `e.Padding` slot, so it would have left
`.PaddingInlineStart` / `.PaddingInlineEnd` broken — those share the same gate via
the `basePad` fallback — and it would only have covered `TextBlockElement` rather
than every element that mounts a `TextBlock`.

Three sites in `ApplyModifiers` gain a `WinUI.TextBlock` arm: the `basePad`
ternary that seeds the BiDi inline overlay, the set arm, and the reset arm.

The reset arm turned out to be unreachable. Its guard was

    var resolvedPadding = m.Padding ?? oldM?.Padding;
    ...
    else if (!resolvedPadding.HasValue && oldM?.Padding.HasValue == true)

whose two conjuncts contradict each other, so dropping `.Padding(...)` from a
re-render never cleared anything. That was harmless while padding never reached
`TextBlock`; shipping the gate widening on top of it would have introduced a fresh
padding bleed on the very control this change is about. The guard is now split into
`wantsPadding` / `hadPadding` locals — the `?? oldM?.Padding` fallback stays,
because `basePad` still needs it — and all four reset arms use `ClearValue` instead
of writing a local `new Thickness(0)`, so a themed padding comes back rather than
being pinned to zero.

Mount calls `ApplyModifiers(fe, oldM: null, ...)`, so the reset arm can never fire
on a freshly rented control; `ElementPool.CleanElement` clears
`TextBlock.PaddingProperty` to stop a pooled `TextBlock` handing its padding to the
next element that sets none.

`ModifierTable`'s `Padding` gate is widened to match — `ModifierTableIntegrityTests`
Roslyn-parses `ApplyModifiers` and demands exact set equality, so this is forced,
not optional. That also clears all 59 `REACTOR_MOD_003` hits in `samples/` with no
sample edits: the scoped exemption list drops from 90 hits / 36 files to 31 / 18.
The minesweeper `.Set(tb => tb.Padding = new Thickness(0))` workaround, which the
comment says existed only because `.Padding()` no-opped there, becomes `.Padding(0)`.

Behaviour change worth calling out: code that relied — knowingly or not — on
`.Padding()` being inert on a `TextBlock` now gets real padding, so some layouts
will shift. That is the point (those call sites were asking for padding and not
getting it), but it is not source-compatible-invisible.

Making the reset reachable also means a render that drops `.Padding(...)` and
writes the property through `.Set(...)` instead ends with the property cleared:
`ApplySetters` runs before `ApplyModifiers`, so the setter lands first and the reset
wipes it. `Width`, `Height`, `MinWidth` and `RequestedTheme` have always answered
this way — measured, not assumed — so this brings `Padding` into line with the rest
of the family rather than inventing a new rule.
`Issue950_ModifierResetOutranksASetterWrite` pins the semantics, including a `Width`
arm, so any future change has to decide for the whole family at once.

Six selftest fixtures / 37 checks cover mount, asymmetric values, update-in-place,
unset, the BiDi inline resolution both ways, pool recycling, `ClearValue`-vs-zero,
the setter-ownership rule, and the untouched `RichTextBlock` descriptor path.
Headless unit tests cannot construct a `Microsoft.UI.Xaml.TextBlock`, so this tier
is the only one that can read the property back. Mutation-checked: reverting the
reset guard reddens 5 checks, deleting the `TextBlock` set arm reddens 8, and
removing the pool reset reddens exactly 2.

Adjacent gaps found while measuring this and deliberately left alone — the `Margin`
reset arm has the identical dead guard, partially removing an inline padding leaves
a stale edge, and `Control`/`Border`/`StackPanel` padding leaks across pool reuse
(that one needs a `poolReset: true` flip that escalates `.Set(c => c.Padding = ...)`
to `REACTOR_POOL_001`, so it needs its own samples sweep) — are filed as #965 with
the measurements.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 82ac8935-416c-4990-911e-c9fb57314e67
Follow-up to the #950 gate widening, from a multi-dimensional branch review.

Four shipped docs hard-coded the padding gate and were wrong in two
directions: they excluded `TextBlock`, which this branch adds, and they
excluded `VStack`/`HStack`, which have worked since `StackPanel` joined
the gate. `skills/design.md` and `plugins/reactor/skills/reactor-design/SKILL.md`
carried the prose, a capability table marking `TextBlock`/`VStack`/`HStack`
unsupported, and a code sample telling authors to wrap a stack in a `Border`;
`skills/figma.md` turned that into a codegen rule, so generated Figma output
was emitting a wrapper `Border` for every padded auto-layout frame. Both
skills folders are packed into the product, so the wrong guidance shipped.
`samples/ReactorGallery/ControlPages/DesignGuidance/SpacingPage.cs` had the
same table and snippet, and its generated `reactor-search-index.json` is
regenerated to match (a `Reactor.Tests` gate byte-compares it). `Grid` and
`Image` genuinely have no Padding property and stay marked unsupported.

Two coverage gaps in code this branch changed. The reset arm has four type
branches and only the `Control` and `TextBlock` ones were pinned, so
reverting `padBdr`/`padSp` to a local `Thickness(0)` reddened nothing:
`PaddingUnsetClearsOnEveryGatedType` covers `Border` and `StackPanel`
via `ReadLocalValue` (both default to zero padding, so reading `.Padding`
back cannot tell a clear from a local zero). It also covers an
`PaddingInlineEnd`-only unset, which is the case `hadPadding` has to
notice and `oldM?.Padding.HasValue` would miss. Separately the BiDi fixture
only exercised `PaddingInlineStart`; it now covers `PaddingInlineEnd` in
both flow directions and `basePad` preservation under RTL, so a resolution
that ignored the inline-end slot or mirrored the edges wrongly no longer
passes. 7 fixtures / 48 checks.

`CHANGELOG.md` gains an `[Unreleased] / Fixed` entry, since padding that
previously evaporated on text now applies and will move existing layouts.

Two review findings are recorded rather than fixed: changing an inline padding
to match the physical value skips the write, and toggling `FlowDirection` on
one instance accumulates edges. Both are the raw-`oldM.Padding` comparison
and live-`basePad` read already filed as #965 §2, both measured identical
before and after this branch, and both need the same previously-resolved-value
tracking to fix.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 82ac8935-416c-4990-911e-c9fb57314e67

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Not ready to approve

The newly added Issue950 selftest fixture file is missing a required using Microsoft.UI.Reactor.AppTests.Host.SelfTest; import, so it won’t compile as written.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Review details
  • Files reviewed: 17/17 changed files
  • Comments generated: 1
  • Review effort level: Lite

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

#961 landed on main after this branch was cut, changing the baseline the
samples/.editorconfig triage was measured against (90 -> 84 hits, 32 exempted
paths). The gate widening in this branch was measured against the pre-#961
tree, so both the counts and the path list were stale after the rebase.

Re-measured with `dotnet build Reactor.slnx -c Debug` and the scoped severity
temporarily flipped back to `warning`, deduplicated on file:line:col:

  84 hits / 32 files  (main)
  26 hits / 14 files  (this branch)

The 58-hit delta is exactly the `.Padding(...) on TextBlockElement` row main's
own triage predicted would clear without a sample edit. 18 files went clean and
are dropped from the exemption list. The 26 that remain are unchanged in kind:
18 .Padding on FlexElement (11 with a .FlexPadding auto-fix), 3 .CornerRadius on
StackElement, 2 .CornerRadius and 2 .Padding on GridElement, and 1 .Foreground
on RichTextBlockElement.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 82ac8935-416c-4990-911e-c9fb57314e67
Copilot AI review requested due to automatic review settings July 31, 2026 06:41
@azchohfi
Alexandre Zollinger Chohfi (azchohfi) force-pushed the azchohfi-widen-padding-gate-to-textblock branch from e099732 to 206d11a Compare July 31, 2026 06:41
Copilot AI dismissed their stale review, a newer Copilot review was requested July 31, 2026 06:45
Copilot AI previously approved these changes Jul 31, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Ready to approve

The reconciler change is targeted and the PR includes strong selftest coverage plus synchronized analyzer/docs/sample updates, with only a minor optional test-strengthening suggestion.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Review details

Suppressed comments (1)

tests/Reactor.AppTests.Host/SelfTest/Fixtures/Issue950TextBlockPaddingFixture.cs:263

  • Optional but recommended: this check can become vacuous if the current theme’s default Button padding happens to equal new Thickness(30). To make the regression robust (and to ensure it fails if the .Padding(30) write is removed), also assert that Control.PaddingProperty is a local value before the toggle (i.e., ReadLocalValue(...) is not UnsetValue).
                H.Check("Issue950_Unset_ControlPaddingApplied", btn.Padding == new Thickness(30));
                H.Check("Issue950_Unset_InlinePaddingApplied", inlineTb.Padding == new Thickness(9, 0, 0, 0));
  • Files reviewed: 17/17 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

@github-actions

github-actions Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

📦 Build metrics

Artifact sizes for fed1017 vs the base branch (9ef0e6d).

Packages (compressed .nupkg)

Artifact base PR Δ
Microsoft.UI.Reactor.nupkg 1.60 MB 1.60 MB +394 B (+0.02%) ≈
Microsoft.UI.Reactor.Advanced.nupkg 475.4 KB 475.4 KB -6 B (0.00%) ≈
Microsoft.UI.Reactor.Devtools.nupkg 278.2 KB 278.2 KB -9 B (0.00%) ≈

Assemblies in Microsoft.UI.Reactor

Artifact base PR Δ
Reactor.Analyzers.dll 354.5 KB 354.5 KB +0 B (0.00%) ≈
Reactor.dll 2.38 MB 2.38 MB +0 B (0.00%) ≈
Reactor.Localization.Generator.dll 16.0 KB 16.0 KB +0 B (0.00%) ≈
Reactor.Wrappers.Abstractions.dll 10.5 KB 10.5 KB +0 B (0.00%) ≈
Reactor.Wrappers.Generator.dll 99.5 KB 99.5 KB +0 B (0.00%) ≈

Assemblies in Microsoft.UI.Reactor.Advanced

Artifact base PR Δ
Reactor.Advanced.dll 1014.0 KB 1014.0 KB +0 B (0.00%) ≈

Assemblies in Microsoft.UI.Reactor.Devtools

Artifact base PR Δ
Microsoft.UI.Reactor.Devtools.dll 777.5 KB 777.5 KB +0 B (0.00%) ≈

No size change beyond the noise floor. ✅

✅ smaller / ⚠️ larger / ≈ within noise. Sizes come from a Release dotnet pack on the CI runner: packages are the compressed .nupkg download size, assemblies the uncompressed DLL inside it.
workflow run.

Review feedback: `widthBtn.Width == 120` is an exact floating-point equality
check. The value round-trips through a double dependency property from a literal,
so it is exact in practice, but the tolerance form is the convention.

1e-9 is deliberately tiny rather than the suggested 1e-4: this assertion is the
positive half of a differential pair, so it must still fail on the 55 the `.Set`
arm writes and on the NaN the reset produces, or the check below it is vacuous.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 82ac8935-416c-4990-911e-c9fb57314e67
Copilot AI review requested due to automatic review settings July 31, 2026 06:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Not ready to approve

skills/figma.md documents the 2-arg .Padding/.Margin overload as (vertical, horizontal), but the actual API is (horizontal, vertical), which can cause shipped codegen guidance to produce swapped padding/margins.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Review details

Suppressed comments (1)

skills/figma.md:89

  • The docs use .Padding(vertical, horizontal) (and .Margin(vertical, horizontal)), but Reactor’s 2-arg overloads are (horizontal, vertical) (see ElementExtensions.cs). As written, generated/code-copied output will swap the axes for symmetric padding/margin cases.
| `paddingTop/Right/Bottom/Left` | all equal `P` | `.Padding(P)` on the stack (or wrapping `Border`) |
| `paddingTop/Right/Bottom/Left` | symmetric (h≠v) | `.Padding(vertical, horizontal)` on the stack (or wrapping `Border`) |
| `paddingTop/Right/Bottom/Left` | mixed | `.Padding(left: L, top: T, right: R, bottom: B)` on the stack (or wrapping `Border`) |

**Important:** `.Padding()` works on `Border`, control-based elements, `VStack`/`HStack`, and `TextBlock`-based text — so a padded auto-layout frame can map straight onto the stack without a wrapping `Border`. Reach for a `Border` when the frame also carries a fill, stroke, or corner radius, or when the container is a `Grid` (which has no padding). Use `.Margin()` when the spacing is between the element and its siblings rather than internal padding.

**Margin overloads:**
- `.Margin(uniform)` — all four sides equal
- `.Margin(vertical, horizontal)` — top/bottom share one value, left/right share another
- `.Margin(left: L, top: T, right: R, bottom: B)` — use named args for per-side values
  • Files reviewed: 17/17 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

Review feedback, and it is a real bug. skills/figma.md documented the two-argument
spacing overloads as `(vertical, horizontal)`. The actual API is the opposite:

    // Two-argument spacing follows the same order everywhere in Reactor:
    // horizontal FIRST, then vertical.
    public static T Padding<T>(this T el, double horizontal, double vertical)
        => ... new Thickness(horizontal, vertical, horizontal, vertical);

    (src/Reactor/Elements/ElementExtensions.cs:45-50, 65-67; same for .Margin and
     .FlexPadding at :1300)

figma.md is agent guidance rather than mechanical codegen, so the swap did not
produce a compiler error anywhere -- it silently told the agent to emit
`.Padding(8, 16)` for a frame padded 16 horizontally and 8 vertically, which
compiles and lays out wrong. Both sites are corrected, and the Margin bullet now
states the order explicitly with a worked Figma example so the next reader does
not have to re-derive it.

Checked the rest of the tree for the same inversion: no other doc, sample, skill,
or spec states the order, and neither src/Reactor.Cli/Figma nor tools/figma-plugin
emits a 2-arg form (spec 033 uses only the 1-arg and 4-arg shapes).

Out of scope but noted: CHANGELOG.md:526, inside the shipped 0.1.0-preview.12
section, still describes the order as having been swapped TO
`(vertical, horizontal)`, which does not match the code. That is a published
release note, so it is left alone here.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 82ac8935-416c-4990-911e-c9fb57314e67
Copilot AI review requested due to automatic review settings July 31, 2026 07:05

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Good catch — this was a real bug, fixed in 0f79ac6.

The API is (horizontal, vertical), and the source says so explicitly:

// Two-argument spacing follows the same order everywhere in Reactor:
// horizontal FIRST, then vertical. This keeps `.Margin(...)`,
// `.Padding(...)`, and `.FlexPadding(...)` aligned and matches the mental
// model of Thickness(left/right, top/bottom).
public static T Padding<T>(this T el, double horizontal, double vertical) where T : Element =>
    ModifyLayout(el, new LayoutModifiers { Padding = new Thickness(horizontal, vertical, horizontal, vertical) });

(src/Reactor/Elements/ElementExtensions.cs:45-50 and :65-67; .FlexPadding at :1300 matches.)

Both sites in skills/figma.md are corrected, and the .Margin bullet now states the order explicitly with a worked example, since this file is agent guidance rather than mechanical codegen — nothing would have failed to compile, it would just have silently emitted .Padding(8, 16) for a frame padded 16 horizontally and 8 vertically.

I checked the rest of the tree for the same inversion: no other doc, sample, skill, or spec states the 2-arg order, and neither src/Reactor.Cli/Figma/ nor tools/figma-plugin/ emits a 2-arg form (spec 033 uses only the 1-arg and 4-arg shapes). So skills/figma.md was the only affected surface.

One related thing I deliberately did not touch: CHANGELOG.md:526, inside the already-shipped 0.1.0-preview.12 section, still says the order was swapped to (vertical, horizontal) per spec 038 §3 — which is where this figma.md text almost certainly came from. #270 ("Create parameter consistency for margins and paddings") set the current (horizontal, vertical) order and that entry was never reconciled. Rewriting a published release note felt out of scope for a padding-gate PR; happy to fix it here if you'd rather.

Copilot AI previously approved these changes Jul 31, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Ready to approve

The core reconciler change is well-scoped, is backed by targeted selftests for mount/update/unset/BiDi/pooling, and the analyzer/docs/samples updates are consistent with the new behavior.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Review details

Suppressed comments (1)

tests/Reactor.AppTests.Host/SelfTest/Fixtures/Issue950TextBlockPaddingFixture.cs:260

  • The Issue950_Unset_ThemedPaddingIsNonZero check is redundant (and potentially brittle across theme/style changes). The test already distinguishes ClearValue vs “local Thickness(0)” via ReadLocalValue(...) == UnsetValue, so requiring the themed padding to be non-zero can fail even when the behavior under test is correct.
                // Guards the fallback check below from being vacuous: if the Button style supplied
                // zero padding, "cleared" and "written as a local zero" would be indistinguishable.
                var themed = reference.Padding;
                H.Check("Issue950_Unset_ThemedPaddingIsNonZero", themed != new Thickness(0));
  • Files reviewed: 17/17 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

@azchohfi

Copy link
Copy Markdown
Collaborator Author

Addressing the one suppressed comment in the last review details, since it is visible to human reviewers even though Copilot chose not to surface it — the guard is load-bearing and stays as-is.

The Issue950_Unset_ThemedPaddingIsNonZero check is redundant (and potentially brittle across theme/style changes). The test already distinguishes ClearValue vs "local Thickness(0)" via ReadLocalValue(...) == UnsetValue […]

It guards a different assertion than the ReadLocalValue one. The fixture makes two independent claims:

check what it proves
Issue950_Unset_ControlLocalValueCleared structural — the local value slot is UnsetValue
Issue950_Unset_ControlFallsBackToThemedPadding behavioural — the effective Padding returns to the themed value

The second one is the one at risk. If the Button style happened to supply Thickness(0), then "cleared, fell back to a themed zero" and "pinned to a local zero" produce an identical observable Padding, and that check passes for the wrong reason. Issue950_Unset_ThemedPaddingIsNonZero is the precondition that keeps it honest — it is the whole reason the ClearValue-vs-Thickness(0) distinction this PR makes is observable at all.

On brittleness: if a future WinUI theme did ship a zero-padding Button, this check failing is the correct outcome, not a false alarm. It would be telling us the fallback assertion had silently gone vacuous and needs a different anchor control. A loud failure beats a test that keeps passing after it stopped proving anything — which is the bar AGENTS.md sets for this repo ("every assertion must fail if its target code is deleted / no-op'd / returns default").

@github-actions

github-actions Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

🧪 Merged coverage

Coverage for fed1017 vs the base branch (9ef0e6d) — unit + selftest merged.

Metric base PR Δ
Line 85.73% 85.76% +0.03 pp ≈
Branch 77.19% (900/1166) 77.10% (899/1166) -0.09 pp ≈

No coverage change beyond the noise floor. ✅

✅ higher / ⚠️ lower / ≈ within noise. Δ is in percentage points; coverage is unit + selftest merged (Debug x64) on the CI runner. Cobertura reports attached to the workflow run as artifacts.

The SpacingPage explanatory paragraph still claimed `.Padding()` "only works on
Border and Control elements" and that "layout panels like VStack and HStack only
support `.Margin()`". That was already wrong for StackPanel before this branch,
and it now also contradicts the compatibility table sixty lines below in the same
file, which this branch updated to mark Text/VStack/HStack as supported. A reader
hitting the prose first would conclude the working modifier does not exist.

Rewrite it to name all four gated families and keep the genuinely-unsupported
cases (Grid, Image) plus the Border workaround.

Also widen the regedit `ValueList` comment, which enumerates the same gate to
explain why a Grid must keep an imperative `.Set`. The claim about Grid is still
true, but the enumeration it cites is now incomplete and the comment points the
reader straight at `ApplyModifiers`.

Regenerating the gallery search index produces no diff — the indexed surface is
the control name plus its first sample snippet, and neither changed.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 82ac8935-416c-4990-911e-c9fb57314e67
@azchohfi

Copy link
Copy Markdown
Collaborator Author

⚠️ Merge-ordering note: this PR and #984 rewrite the same lines

Flagging for whoever sequences these. #984 ("Fix #952: unsetting a common modifier must ClearValue, not write the DP default") touches src/Reactor/Core/Reconciler.cs and src/Reactor/Core/ElementPool.cs — and not merely the same files, but the same statements inside ApplyModifiers' padding block. A textual conflict is guaranteed. Both sets of edits are needed; neither side is a superset.

Where they collide

Site #970 (this PR) #984
basePad ternary adds a WinUI.TextBlock arm to the chain adds ?? oldM?.Padding in front of the chain; chain itself untouched
resolvedPadding init keeps m.Padding ?? oldM?.Padding narrows to m.Padding, relocating the fallback into basePad
the unreachable reset guard !wantsPadding && hadPadding !resolvedPadding.HasValue && (oldM?.Padding.HasValue || oldM?.PaddingInlineStart.HasValue || oldM?.PaddingInlineEnd.HasValue)
set + reset arms 4 arms (Control/Border/StackPanel/TextBlock) 3 arms, ClearValue conversion
ElementPool.CleanElement adds tb.ClearValue(TextBlock.PaddingProperty) to case TextBlock tb: edits that same arm, and converts border.Padding = new Thickness(0) → ClearValue

Note the third row: both PRs independently discovered and fixed the same unreachable else if, in different shapes. That's the load-bearing conflict — a resolver looking at two plausible guards may reasonably keep one.

The risk

#984 contains zero references to TextBlock in Reconciler.cs — it is written against pre-#970 main. This PR's TextBlock support is three single else if lines plus one ternary arm, sitting inside blocks that #984 rewrites wholesale. Resolving the conflict by taking #984's version of the padding block — the natural instinct, since it's the broader restructure — reverts #950 entirely while the merge still looks clean.

It would not go undetected: Issue950TextBlockPaddingFixture.cs (7 fixtures / 48 checks) is a separate file, doesn't conflict, and mutation-checking showed deleting the TextBlock set arm reddens 8 checks. So the tripwire survives the merge and fires in CI. Worth knowing it's there, so a red selftest leg after the second merge is read as "the resolution dropped an arm" rather than as flake.

Suggested order: #970 first, then #984 rebases onto it

Either order is recoverable, but this one is safer for a specific reason: it puts the TextBlock fixture into main before the large restructure lands, so #984's own CI run validates its rewrite against the TextBlock guarantees. The reverse order leaves nothing in main guarding TextBlock padding while the block is being restructured.

Please don't merge them back-to-back without a CI run in between.

Also: #970 ↔ #974 both touch samples/ReactorGallery/reactor-search-index.json

That file is byte-compared by a Reactor.Tests gate. It must be regenerated after whichever merges second (dotnet run --project tools/Reactor.SearchIndex), never hand-merged.

Knock-on for #965

#984's paddingInlineChanged term is precisely item 2 of #965 (the stale inline-edge transition), and its ClearValue(FrameworkElement.MarginProperty) overlaps item 1. Item 3 was already identified as a duplicate of #985. #965 is probably worth re-scoping or closing once #984 lands, rather than left standing as a list of things that are quietly already fixed.

PR #974 adds a zero-tolerance gallery-snippet lint (no allowlist) requiring
every snippet to name only identifiers that exist in the code beside it.
It deliberately does not credit named-argument labels -- that is the hinge
that catches `columns: columns` in the DataGrid page -- so the `columns:` /
`rows:` labels living at SpacingPage.cs:84-85 do not satisfy it.

#974 measured this snippet against its gate with my file swapped in and got
`Failed: 1, Passed: 52` on `columns`, and verified 53/53 once the free names
are replaced.

Replace every placeholder with a real expression, not just the four names
`columns` / `rows` / `cells` / `items` that I introduced. `child` and
`children` on the Margin lines predate this branch and pass today, but both
PRs edit this one contiguous block, so a git conflict here is guaranteed.
Making the whole snippet self-contained means "take mine" at conflict
resolution is also green, instead of only "take theirs".

Verified by compiling the snippet as real code in a throwaway file against
ReactorGallery -- every expression binds, including `Button("Go")`,
`VStack(8, ...)` and the collection-expression `Grid(columns: [...],
rows: [...], ...)` overload. Regenerated reactor-search-index.json, which
this snippet feeds and a Reactor.Tests gate byte-compares.

No behavioural change: snippet text only. The reconciler change and
Issue950TextBlockPaddingFixture are untouched.

Refs #950

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 82ac8935-416c-4990-911e-c9fb57314e67
Copilot AI review requested due to automatic review settings July 31, 2026 15:40
Copilot AI dismissed their stale review, a newer Copilot review was requested July 31, 2026 15:43
Copilot AI previously approved these changes Jul 31, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Ready to approve

The reconciler behavior change is tightly scoped, mirrored in analyzer tables/tests, and is backed by targeted selftests that cover mount/update/unset, BiDi inline padding, and pooling/reset semantics.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Review details
  • Files reviewed: 18/18 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

The coordinator performed the real 3-way merge with #974 and measured what
I had only reasoned about: resolving the SpacingPage.cs conflict with
`--theirs` (take #970's whole file) still fails #974's gate, because #974
separately fixes a SECOND snippet -- "Padding" at :248-256 -- that this
branch never touched. Taking my whole file discards that fix and the gate
convicts `child` at :249.

Reproduced it here against #974's actual head (73778cb), rather than
trusting the report:

  #974's own file            ->  Passed: 53, Failed: 0
  my file at 133eb8a        ->  Failed: 1   SpacingPage.cs:249 `child`
  my file + this commit      ->  Passed: 53, Failed: 0

Fix the second snippet using #974's *exact* text, so the three lines are
byte-identical on both branches. `git merge-tree` confirms this adds no new
conflict -- git auto-merges an identical change on both sides -- so the
conflict surface is unchanged at two files while the `--theirs` resolution
becomes green. Both resolutions now pass instead of only the careful one.

Shipping this text early is correct on its own terms: unlike the
margin-vs-padding snippet, `Border(...).Padding(...)` is true on main
independent of #950, so it documents no unlanded behaviour.

Compile-checked the three newly-concrete lines in a throwaway file against
ReactorGallery -- the `.Padding(horizontal:, vertical:)` and 4-arg overloads
had never been compiled, only quoted. Both resolve
(ElementExtensions.cs:66 and :72). Harness deleted.

reactor-search-index.json is unchanged: only the first snippet per control
is indexed, and this edits the second.

Refs #950

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 82ac8935-416c-4990-911e-c9fb57314e67
Copilot AI review requested due to automatic review settings July 31, 2026 16:12
Copilot AI dismissed their stale review, a newer Copilot review was requested July 31, 2026 16:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Ready to approve

The reconciler change is narrowly scoped, is backed by new selftests plus analyzer test updates, and the docs/samples/analyzer gate tables are kept consistent with the behavior change.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Review details
  • Files reviewed: 18/18 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

@azchohfi
Alexandre Zollinger Chohfi (azchohfi) merged commit 33dafd0 into main Jul 31, 2026
21 checks passed
@azchohfi
Alexandre Zollinger Chohfi (azchohfi) deleted the azchohfi-widen-padding-gate-to-textblock branch July 31, 2026 18:03
Alexandre Zollinger Chohfi (azchohfi) added a commit that referenced this pull request Jul 31, 2026
#970 (widen the Padding gate to TextBlock/StackPanel) landed at 33dafd0 and
collides with this branch in the two files it also touched.

SpacingPage.cs — resolved toward main. #970 rewrote the "Margin vs Padding"
snippet and corrected the surrounding prose, which previously claimed Padding
works "only on Border and Control" and that VStack/HStack support Margin only.
That was already wrong before #970 (StackPanel was in the gate), so resolving
toward this branch would have reinstated documentation that is now factually
incorrect in the page whose whole purpose is teaching spacing. #970 had also
independently made the same snippet fixes this branch made, so the resolved
file is identical to main's: nothing from either side was lost.

reactor-search-index.json — regenerated, not resolved. The committed index is
derived from the gallery sources, so neither side of the conflict is correct
for the merged tree. Regenerated after resolving SpacingPage.cs, never before,
since generating from a half-merged source would bake the conflict into the
output.

Hand-editing this file is not a safe alternative: the gate is a raw byte
compare (SearchIndexGeneratorTests.cs:67-68) with no line-ending
normalisation, so a hand-merge that gets every byte of content right still
fails if the editor writes CRLF -- and `git diff` normalises exactly that
difference away, reporting "no change" on a file that fails the gate. Measured:
LF passes, same content as CRLF fails at offset 1.

This is the contingency the PR body documents, firing about an hour after it
was written: the index gate held only while main's gallery edits happened to
miss every control's first sample snippet, and #970 changed one.

Validation on the merged tree (Release, x64):
  Tooling suite (incl. index byte-compare)  117 / 117
  full unit suite                           12993 passed, 0 failed, 64 skipped
  ReactorGallery                            0 warnings, 0 errors
  tests build                               0 warnings, 0 errors

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: cf175758-fc9b-4061-8e35-0248470487e2
Alexandre Zollinger Chohfi (azchohfi) added a commit that referenced this pull request Jul 31, 2026
#970 (issue #950) landed the TextBlock half of the padding gate and rewrote the
padding reset guard, which collided with this branch's rewrite of the same block.

Resolved as a UNION, not by taking either side:

  * from main  - `wantsPadding` / `hadPadding` reset guard, the carry-forward
                 `resolvedPadding`, and `WinUI.TextBlock` in all three places
                 (basePad fallback chain, write arm, clear arm).
  * from here  - `paddingInlineChanged` in the write condition.

Taking main's side wholesale would have reverted the inline-drop fix added in
67cd1b8: with `.Padding(9).PaddingInlineStart(2)` followed by `.Padding(9)`
alone, `resolvedPadding` resolves back to 9, equals `oldM.Padding`, so the write
is skipped, and `wantsPadding` is still true so the clear arm does not run
either -- the control keeps the stale (2,9,9,9) overlay forever. Verified by
mutation: restoring main's condition reddens
`InlineDrop_Phase1_PaddingBackToPhysical`; the union is green.

Note the write arm auto-merged and already carried both `padTb` and
`paddingInlineChanged`, so resolving the two conflict hunks with `--theirs`
would have produced a *partial* revert of #950 (TextBlock padding still written,
never cleared) rather than a clean one.

Margin keeps this branch's shape: the carry-forward lives in `baseMargin`, so
`resolvedMargin` stays null when the modifier is dropped and the reset arm is
reachable -- the same dead-guard bug main fixed for padding a different way.

Validation on the merged tree: Modifier 196/196, Issue950 48/48, analyzer and
pool-consistency unit tests 95/95.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: f958e577-d1da-4044-b54c-2587b4812e47
Alexandre Zollinger Chohfi (azchohfi) added a commit that referenced this pull request Jul 31, 2026
Refreshes the base past #968/#970/#971/#972 so CI validates this fix against
current main rather than a stale base. Only DataGridEditFixtures.cs is touched
by both sides; main's change there is the #971 fixed-delay -> WaitFor sweep in
neighbouring fixtures and auto-merges clean.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 40080795-41cb-4886-bfa4-219bf8567dcc
Alexandre Zollinger Chohfi (azchohfi) added a commit that referenced this pull request Jul 31, 2026
The comment was accurate when #970 wrote it -- at that point #970 had converted
only the Padding arm and every sizing/alignment arm below was still writing the
DP default as a local value. This PR converts them, which is what made the
comment stale.

Comment-only; no behaviour change.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: f958e577-d1da-4044-b54c-2587b4812e47
Alexandre Zollinger Chohfi (azchohfi) added a commit that referenced this pull request Jul 31, 2026
Every_Diff_Guarded_Modifier_Has_An_Unset_Arm asks a per-property question, so
it is satisfied the moment a property has any reset at all. Several arms are
type-dispatch chains (`if (fe is WinUI.X) ... else if (fe is WinUI.Y) ...`)
that get widened one control type at a time -- #970 added TextBlock to Padding,
#1003 adds Grid/RelativePanel to Padding and Grid/StackPanel/RelativePanel to
CornerRadius. Widening only the write half leaves a control type that can have
the property set and never released: the #986 bug one type down, invisible to a
property-level scan because the property's reset still exists for its original
types. That is also the standing merge hazard on this file, since the two halves
sit in different hunks and can auto-merge apart.

Verified by mutation, on this branch and on the #986+#1003 merge result:
deleting a single clear branch while leaving its write branch in place reddens
Every_Type_Gated_Write_Has_A_Matching_Type_Gated_Clear and nothing else, naming
the property and the orphaned type. The same mutation passed silently before.

Review comments:

- github-code-quality flagged `a` as dereferenced after a null check in
  ApplyAccessibilityModifiers. The compiler's flow analysis proves the accesses
  safe (`a?.X.HasValue == true` implies non-null, and the project builds with
  nullable warnings as errors), but CodeQL cannot, and the explicit form reads
  better. Twelve set arms now use `a is not null && a.X... ` directly. The unset
  arms are unchanged: `a?.X.HasValue != true` never dereferences. Behaviour is
  identical, re-confirmed by re-running the ItemStatus unset-arm mutation, which
  still flips all three of its checks.

- Removed the write-only `scanned` list from
  Every_Diff_Guarded_Modifier_Has_An_Unset_Arm. The stale-exception check reads
  `missing`, so `scanned` was dead.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 0533f073-1d93-4f3a-9e34-85f02b4ddaee
Alexandre Zollinger Chohfi (azchohfi) pushed a commit that referenced this pull request Aug 1, 2026
Every_Type_Gated_Write_Has_A_Matching_Type_Gated_Clear carried a
non-vacuity floor of `pairs >= 10` and a comment claiming 14 pairs.
The oracle actually reads 28 pairs over 11 properties, so the floor
tolerated losing 18 of them.

That slack covered the exact arms the test exists for: dropping the
Padding (6) and CornerRadius (5) chains outright still reports 17 and
passes, and those are the two properties #970, #986 and #1003 each
widened. A resolution that lost both chains was certified green.

Raise the floor to 24 -- the loss of either chain now trips it, with
four arms of slack for a legitimate narrowing, matching the ratio the
per-method MinArms floors already use.

Boundary-verified against the oracle's own count rather than a
re-derivation: removing 4 CornerRadius arms leaves 24 and passes,
removing 5 leaves 23 and fails. A line-scoped text scan reports 22
here because it misses writes nested inside a gate's block, so the
comment now says to read the number out of the assertion message.

Comment and constant only; no product code and no Reconciler.cs change.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 0533f073-1d93-4f3a-9e34-85f02b4ddaee
Alexandre Zollinger Chohfi (azchohfi) added a commit that referenced this pull request Aug 4, 2026
* Add missing unset arms for modifiers that never released (#986)

`ApplyModifiers` writes a modifier only when it is present in the new bag.
Five common modifiers had no `else` arm at all, so dropping one from a chain
left the previous render's write pinned on the control forever:

  phase == 0 ? Button("Go", Go).IsTabStop(false)
             : Button("Go", Go)     // still not a tab stop

`ApplyAccessibilityModifiers` was worse. It opened with `if (a is null) return;`
while the caller invokes it precisely when `a11y is not null || oldA11y is not
null` — so dropping the *whole* accessibility sub-record reached the method and
returned immediately, releasing nothing. Ten of its eleven properties also had
no per-property unset arm even when the bag survived.

This is the mirror image of #952: there the reset ran but used the wrong shape;
here it never ran.

Changes
- `ApplyModifiers`: unset arms for `ElementSoundMode`, `HeadingLevel`,
  `IsTabStop`, `TabIndex`, `XYFocusKeyboardNavigation`. The two Control-gated
  arms rebind their own pattern variable (the existing `enCtrl`/`enCtrl2`
  shape) — reaching the `else` only proves the whole set condition was false,
  which a non-Control satisfies while still having the modifier set.
- `ApplyAccessibilityModifiers`: drop the early return, read every property
  through `a?.X`, and add `ClearValue` arms for the ten properties that lacked
  one. `LabeledBy` already had one; the `*Refs` edges unwind through
  `ApplyModifierReferenceEdges`.

Every reset uses `ClearValue(<DP>Property)`, never a default assignment: a
local value outranks every `Style` setter in WinUI's precedence order (#952).

Tests
- `ModifierUnsetClearValueTests` gains the positive scan the existing shape
  tests admitted they lacked — every diff-guarded set arm in both reconciler
  methods must have a matching unset arm. 49 modifiers are scanned today
  against a non-vacuity floor of 30, with a documented exception dictionary
  and a stale-exception assertion so entries cannot rot.
- Selftests pin the behaviour, since only `ReadLocalValue(dp) ==
  DependencyProperty.UnsetValue` distinguishes "released" from "assigned the
  default", and headless xUnit cannot construct a WinUI object.
  `ModifierClearResets` gains five release checks; a new
  `AccessibilityModifierClearResets` fixture covers apply / partial drop /
  whole-bag drop.
- Each new arm was mutation-checked: removing the five Tier-1 `ClearValue`
  calls flips exactly the five new checks; restoring the early return flips
  only the whole-bag-drop phase; removing the eleven a11y arms flips the
  per-property phases.

The transform family (`Scale`/`Rotation`/`Translation`/`CenterPoint`) is
deliberately excluded and tracked in #1001: those are facade DPs whose live
value sits on the composition visual, so `ClearValue` alone cannot undo an
animated write. They are recorded in the new exception dictionary rather than
silently tolerated.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 0533f073-1d93-4f3a-9e34-85f02b4ddaee

* fix(reconciler): guard deferred LabeledBy against stale re-application

Follow-up to the multi-model pr-review pass on the issue #986 unset-arm work.

Two high-severity findings:

1. The deferred LabeledBy path parks a `Loaded` handler when the target
   AutomationId is not yet in the tree. If the modifier is dropped before that
   handler runs, the reset arm's ClearValue is immediately undone by the stale
   handler, re-pinning a label the caller no longer asks for. Publish the
   in-flight request as ReactorState.PendingLabeledBy before parking, and have
   the handler no-op unless it still matches. Reset it alongside PendingEchoMatch
   in ClearCurrentEventHandlers, DetachReactorState, and the pool-return path.

2. The ModifierClear_Tier1Applied phase-0 assertions were a single 10-clause
   conjunction, so a broken *set* arm could be masked. Split into five
   per-property checks that each assert a local value exists AND the intended
   non-default effective value; release checks now compare against the phase-0
   value rather than a guessed WinUI default.

Structural gate: per-method non-vacuity floors replace the single global arm
count, and a new Roslyn test pins the handler's pending-request re-check (the
harness cannot hold `Loaded` open across a re-render, so the behavioural fixture
takes the synchronous path on a warm machine).

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 0533f073-1d93-4f3a-9e34-85f02b4ddaee

* Close the type-branch blind spot and address code-quality review

Every_Diff_Guarded_Modifier_Has_An_Unset_Arm asks a per-property question, so
it is satisfied the moment a property has any reset at all. Several arms are
type-dispatch chains (`if (fe is WinUI.X) ... else if (fe is WinUI.Y) ...`)
that get widened one control type at a time -- #970 added TextBlock to Padding,
#1003 adds Grid/RelativePanel to Padding and Grid/StackPanel/RelativePanel to
CornerRadius. Widening only the write half leaves a control type that can have
the property set and never released: the #986 bug one type down, invisible to a
property-level scan because the property's reset still exists for its original
types. That is also the standing merge hazard on this file, since the two halves
sit in different hunks and can auto-merge apart.

Verified by mutation, on this branch and on the #986+#1003 merge result:
deleting a single clear branch while leaving its write branch in place reddens
Every_Type_Gated_Write_Has_A_Matching_Type_Gated_Clear and nothing else, naming
the property and the orphaned type. The same mutation passed silently before.

Review comments:

- github-code-quality flagged `a` as dereferenced after a null check in
  ApplyAccessibilityModifiers. The compiler's flow analysis proves the accesses
  safe (`a?.X.HasValue == true` implies non-null, and the project builds with
  nullable warnings as errors), but CodeQL cannot, and the explicit form reads
  better. Twelve set arms now use `a is not null && a.X... ` directly. The unset
  arms are unchanged: `a?.X.HasValue != true` never dereferences. Behaviour is
  identical, re-confirmed by re-running the ItemStatus unset-arm mutation, which
  still flips all three of its checks.

- Removed the write-only `scanned` list from
  Every_Diff_Guarded_Modifier_Has_An_Unset_Arm. The stale-exception check reads
  `missing`, so `scanned` was dead.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 0533f073-1d93-4f3a-9e34-85f02b4ddaee

* test: address code-quality review round 2 on the #986 modifier gates

Five `github-code-quality` findings on PR #1018.

LINQ shape (3 findings) - the three scanner loops in
ModifierUnsetClearValueTests filtered with `continue` guards instead of a
predicate:

* `Every_Type_Gated_Write_Has_A_Matching_Type_Gated_Clear` - replaced
  `TryReadTypeGate(if, out string, out string) : bool` with
  `ReadTypeGate(if) : (string TypeName, string Variable)?` so the gate can be
  projected and filtered rather than tested with an `out`-param guard.
* `ReadUnsetModifierNames` / `ReadDiffGuardedModifiers` - folded the guards
  into `.Where(...)` predicates.

Phase-0 coupling (2 findings) - `initial.IsTabStop == false` and
`button.IsTabStop != false` were flagged as boolean-literal comparisons. The
literal is the *phase-0 bag value*, not a predicate: the release check asserts
the effective value moved away from what the bag wrote, deliberately not
towards a guessed WinUI default (guessing it once already produced a false
failure in this suite). Collapsing to `!initial.IsTabStop` would have broken
the five-row parallel table and hidden that coupling. Introduced
`const bool Phase0IsTabStop` and wired it through the bag *and* both checks,
so the coupling is now enforced by the compiler rather than only described in a
comment.

Mutation-verified after the refactor - both scanners still redden:

* drop the `StackPanel` Padding clear -> type-parity test fails with
  `[Padding on StackPanel]`
* drop the whole `IsTabStop` unset arm -> existence test fails with
  `[ApplyModifiers.IsTabStop]`

Unit 7/7, selftest `--filter ModifierEvent` 150 ok / 0 not ok.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 0533f073-1d93-4f3a-9e34-85f02b4ddaee

* test: pin the deferred LabeledBy staleness-guard ordering

Round-3 Copilot review raised a *suppressed* finding (no inline thread) on the
deferred LabeledBy Loaded handler: clearing `PendingLabeledBy` before checking
whether `FindByAutomationId` resolves could `prematurely cancel the pending
request`, including when `multiple parked handlers run in the same Loaded
event`.

The finding is incorrect as stated. The handler unsubscribes itself as its first
statement, so it fires at most once - there is no later handler for the same
request to prevent, and once it has run the token no longer describes anything
outstanding whether or not the target resolved. Leaving it set on failure would
make the token assert a parked handler that does not exist.

The multi-handler case is real but already safe: the set arm's
`a.LabeledBy != oldA?.LabeledBy` diff guard means a second park always carries
a *different* labelId, so the stale handler's `PendingLabeledBy != labelId`
check returns before it can touch the live request's token.

But that safety rests entirely on statement *ordering*, and nothing pinned it.
Hoist the retirement above the staleness guard and the stale handler cancels the
live one, which then no-ops and leaves the label unresolved - the reviewer's
scenario, reachable by a plausible edit. So the concern is now guarded.

The first oracle for this was vacuous. Keying on the first `return` in the
handler body passes under the hoist mutation, because the handler opens with an
unrelated `TryGetReactorState` bail-out that still sorts before the clear.
Replaced with a syntax-span comparison between the if-statement whose condition
names `labelId` and the `PendingLabeledBy = null` assignment.

Mutation-verified: hoisting the retirement above the staleness guard fails the
test; the string-index version passed the same mutation.

Unit 7/7, `dotnet build Reactor.slnx` exit 0.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 0533f073-1d93-4f3a-9e34-85f02b4ddaee

* fix: avoid allocating ReactorState on the sync LabeledBy path; document CenterPoint identity

Three *suppressed* findings from the round-4 Copilot review (again emitted in the
review body with no inline thread). All three are correct.

**Reconciler.cs:4332** - the synchronous LabeledBy resolution path called
`GetOrCreateReactorState(fe).PendingLabeledBy = null`, which allocates and
attaches a ReactorState even when there was never a deferral. Synchronous
resolution is the *common* path - deferral only happens when the element is not
yet in the visual tree - so this cost one attached state per element that ever
resolves a LabeledBy. With no state there is no parked handler and nothing to
retire, so `TryGetReactorState` is both cheaper and semantically identical.
This now matches the shape already used by the unset arm below it.

**modifier-system template + generated guide** - the transform caveat named four
modifiers but spelled identity resets for only three, which invites the reader to
assume `.CenterPoint()` is safe to omit while the other three are not. Added
`.CenterPoint(Vector3.Zero)`, and noted that unlike `.Translation()` it has
no component-wise overload - the reason the example was easy to leave out.

Edited the `.md.dt` template and regenerated via `mur docs compile --topic
modifier-system`; the generated diff is the four intended lines with no snippet
churn.

Selftests after the Reconciler change: ModifierEvent 150 ok, ChartA11y 181 ok,
Accessibility 28 ok, 0 not-ok across all three. Unit 7/7.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 0533f073-1d93-4f3a-9e34-85f02b4ddaee

* test: fix a WaitFor short-circuit and split the release oracle from its non-vacuity guard

Two more *suppressed* findings (round 5, again no inline threads). Both correct.

**The WaitFor short-circuit is a real flake.** The predicate was
`ReferenceEquals(AP.GetLabeledBy(applied), labelSource())`, and my own comment
directly above it asserted this was `false at t=0 and converging, which is the
one shape WaitFor is sound for`. That was wrong: `ReferenceEquals(null, null)`
is **true**, so with the label source not yet discoverable and LabeledBy not yet
resolved the wait returned immediately at zero elapsed time - having never
waited - and the following check then failed spuriously on a still-null source.
The predicate now requires the source inside the same lambda, which is what makes
it genuinely eventual. This is the exact trap AGENTS.md documents for WaitFor;
the comment claiming soundness made it harder to spot, not easier.

**The release checks conflated two different failures.** Each read
`ReadLocalValue(...) == UnsetValue && <effective> != <phase-0 value>`. The
first clause is the product oracle; the second is a non-vacuity guard against a
phase-0 value that happens to equal the control's default. Folded together, a
fixture-design problem presented as a reconciler regression. Split into five
`ModifierClear_*Cleared` checks (local-value oracle alone, as suggested) and
five `ModifierClear_*Phase0WasDistinct` checks. The guard is kept rather than
dropped - without it a property whose default already equals the phase-0 value
would satisfy the release oracle trivially - but a `*Cleared` failure now means
a product bug unambiguously.

Applied to all five properties, not just the flagged `IsTabStop`: the shape
occurred five times and the concern is structural.

Mutation-verified: dropping the `IsTabStop` unset arm reddens
`ModifierClear_IsTabStopCleared`, so the split did not weaken the oracle.

Selftest `--filter ModifierEvent` 155 ok / 0 not-ok (150 before, +5 new
checks), including all 14 `A11yClear_*`. ChartA11y 181 ok.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 0533f073-1d93-4f3a-9e34-85f02b4ddaee

* docs: correct the transform-family caveat; fix a stale remark on the a11y bag

Two more *suppressed* findings (round 6). Both are documentation-accuracy and
both are right.

**The transform caveat overstated the mechanism.** It claimed the four transform
modifiers `write through the element's composition visual rather than through
the XAML property system, so ClearValue has nothing to release`. Verified
against `AnimationHelper`: `SetOrAnimateVector3` resolves the ambient curve
first and, when there is none, falls through to `SetVector3Direct`, which
assigns the XAML facade property (`element.Scale = value`) - an ordinary DP
write that `ClearValue` would release. Only the *animated* path takes
`ElementCompositionPreview.GetElementVisual` + `StartAnimation`.

So the real reason these four are deferred to #1001 is that they have no unset
arm **at all**, plus the animated case additionally needing the composition
animation stopped before a reset can bite. The old wording would have told a
reader - and whoever picks up #1001 - that the un-animated case is unfixable by
the normal mechanism, which is false. Reworded, and applied the same correction
to the `MissingUnsetArmExceptions` rationale, which carried the same claim.

**Stale remark on ApplyAccessibilityModifiers.** The remarks said `Every
property is therefore read through a?.X`, which stopped being true when the
12 set arms were rewritten to `a is not null && a.X…` to satisfy the CodeQL
null-deref rule earlier in this PR. Now states the actual split: set arms guard
with `a is not null`, reset arms read `a?.X`.

Template edited and regenerated via `mur docs compile --topic modifier-system`.
Unit 7/7, `dotnet build Reactor.slnx` exit 0.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 0533f073-1d93-4f3a-9e34-85f02b4ddaee

* test: locate the CleanElement FE-common boundary via Roslyn, not a text scan

ReadCleanElementCommonBlock found the end of the FE-common region with
source.IndexOf("switch (fe)"). Any comment mentioning the dispatch matches
first, which silently truncates the region and makes every absence-shaped
assertion over it vacuous while still reporting green.

Measured on this tree: injecting a line comment naming the dispatch shrinks
the region from 7796 to 40 characters. With a real violation placed below the
comment, the old boundary reports PASS while the new one fails and names
[AllowDrop]; same product file, only the boundary form differs.

An anchored regex is not sufficient either -- a block comment whose inner line
begins with the dispatch text still satisfies ^\s*switch. A SwitchStatementSyntax
cannot be forged by a comment of any shape, so the boundary is now a syntax node
matched on the method's actual parameter identifier. The file already parses with
Roslyn elsewhere, so this introduces no new dependency.

Region on a clean tree is unchanged at 7796 characters and the suite is
unchanged at 13130 passing.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 0533f073-1d93-4f3a-9e34-85f02b4ddaee

* docs: name the four presence-shaped detectors the boundary does not replace

The syntax-node boundary closes the comment-forgery route, but that is not a
reason to drop the presence-shaped detectors: the pins guard this region's
scope, the absence scan guards the pin list's closed world, and neither
subsumes the other. Enumerate all four (one here, three in
PoolResetSetConsistencyTests) so nobody deletes one believing the boundary
made it redundant.

Comment-only: 13 added lines, all ///, 0 removed.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 0533f073-1d93-4f3a-9e34-85f02b4ddaee

* Calibrate the type-gated pair floor to the population it guards

Every_Type_Gated_Write_Has_A_Matching_Type_Gated_Clear carried a
non-vacuity floor of `pairs >= 10` and a comment claiming 14 pairs.
The oracle actually reads 28 pairs over 11 properties, so the floor
tolerated losing 18 of them.

That slack covered the exact arms the test exists for: dropping the
Padding (6) and CornerRadius (5) chains outright still reports 17 and
passes, and those are the two properties #970, #986 and #1003 each
widened. A resolution that lost both chains was certified green.

Raise the floor to 24 -- the loss of either chain now trips it, with
four arms of slack for a legitimate narrowing, matching the ratio the
per-method MinArms floors already use.

Boundary-verified against the oracle's own count rather than a
re-derivation: removing 4 CornerRadius arms leaves 24 and passes,
removing 5 leaves 23 and fails. A line-scoped text scan reports 22
here because it misses writes nested inside a gate's block, so the
comment now says to read the number out of the assertion message.

Comment and constant only; no product code and no Reconciler.cs change.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 0533f073-1d93-4f3a-9e34-85f02b4ddaee

* test: give the type-gated parity test a clear-side non-vacuity floor

Every_Type_Gated_Write_Has_A_Matching_Type_Gated_Clear had a floor over the
write side only. A failure confined to ReadClearedProperties therefore left
pairs at 28 (floor green) while emptying clears, so every property took
the continue and offenders came out empty -- both arms of the test
reporting that nothing was wrong. ReadClearedProperties has exactly one call
site, so nothing else in the suite covered it.

Measured, not argued: breaking that reader alone and rebuilding produced
Failed: 0, Passed: 7. With the clear-side floor it produces
"Only 0 type-gated modifier clear(s) ... while the write side still reads 28".

The population is read through this test's own parser rather than a text scan
-- 28 clears over the same 11 properties, mirroring the writes exactly -- and
the floor is calibrated identically to its sibling, so losing either of the
two longest chains (Padding 6, CornerRadius 5) trips it.

Test-only. No product code; Reconciler.cs deliberately untouched.
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 0533f073-1d93-4f3a-9e34-85f02b4ddaee

* docs: correct a false premise in the clear-side skip comment

The comment on the `clears.TryGetValue` continue claimed "several properties
legitimately clear through an ungated fe.ClearValue(...)". Measured through the
test's own parser, zero properties do: all 11 written properties are present in
`clears`, so the skip count is 0.

Two mutations settle what the branch is actually for:

  delete an unset arm, keep the write  -> Every_Diff_Guarded_Modifier_Has_An_
                                          Unset_Arm fails naming the property
  keep the arm, move the clear to an
  ungated fe.ClearValue(...)           -> 7/7 green, correctly: the property is
                                          still released, it is just no longer a
                                          type-dispatch chain to compare against

So the missing-arm case is covered by the sibling test, and the branch exists
only for the ungated-but-correct shape. Left as a continue rather than tightened
into an assertion: asserting the skip count is zero would fail on that correct
shape, and the obvious remediation would be to re-gate a clear that never needed
gating - churn in Reconciler.cs to fix nothing.

Comment only; no assertion or logic change (0 non-comment lines in the diff).

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 0533f073-1d93-4f3a-9e34-85f02b4ddaee

* test: catch a deleted unset arm the exclusion list hid

Every_Type_Gated_Write_Has_A_Matching_Type_Gated_Clear skipped any property
absent from its `clears` map. That map is gate-bound, so a property whose whole
unset arm was deleted vanished from it and was never compared -- the test
certified the exact defect it exists to catch.

The per-property sibling does not cover the gap. Its exclusion list names the
three modifiers that compute a local before testing it (Margin, Padding,
BorderThickness), whose conditions never mention `m.X`. Measured: deleting
BorderThickness's whole unset arm while keeping both type-gated writes left all
seven tests in this file green -- sibling excludes it, write floor untouched at
28, clear floor falls only 28 -> 26 against a floor of 24.

Read ungated clears too and classify three ways instead of skipping: a
type-gated chain is compared as before, an ungated `fe.ClearValue(...)` is
accepted, and neither is an offender. Asserting nothing was skipped would have
been wrong -- the ungated shape is semantically correct and would false-fail,
and its obvious remediation is to re-gate a clear that never needed gating, in
the most contended file in the repo.

Mutation-verified both directions on the same property, with the aim measured
out of band through the oracle's own parser:
  arm deleted, write kept   gated 2->0, ungated 0  -> RED,   names [BorderThickness]
  clear made ungated        gated 2->0, ungated 1  -> GREEN, no false positive
Reconciler.cs restored byte-identical after each arm; suite 13130/0/64.

Refs #986

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 0533f073-1d93-4f3a-9e34-85f02b4ddaee

* test: scope the unset-arm identifier names to both scanned methods

ReadUnsetArms() scans ApplyModifiers AND ApplyAccessibilityModifiers, but three
identifiers still carried an ApplyModifiers-only name. A coverage auditor reading
them would conclude the accessibility half is unscanned.

  Every_ApplyModifiers_Unset_Arm_Clears_The_Dependency_Property
    -> Every_Unset_Arm_Clears_The_Dependency_Property
  Every_ApplyModifiers_Unset_Arm_Actually_Resets_Something
    -> Every_Unset_Arm_Actually_Resets_Something
  ApplyModifiersAssignmentExceptions
    -> UnsetArmAssignmentExceptions

The dictionary was not merely broad but backwards: its sole entry,
PendingLabeledBy, occurs five times in ApplyAccessibilityModifiers and zero
times in ApplyModifiers. The mutation that removes that entry reports the
offender as `ApplyAccessibilityModifiers.LabeledBy`, i.e. the excluded method.

Tests only; no product code. 7/7 pass and the removed-entry mutation reddens
exactly one, so the renamed dictionary is still consulted.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 0533f073-1d93-4f3a-9e34-85f02b4ddaee

* test: hoist a per-method non-vacuity floor into ReadUnsetArms

The unset-arm scan covers both ApplyModifiers and ApplyAccessibilityModifiers,
but its only non-vacuity guard was a single combined `arms.Count >= 20` on one
caller. ApplyModifiers alone contributes 36 arms, so that floor cleared on its
own: if the matcher stopped recognizing ApplyAccessibilityModifiers, all 12 of
its arms could vanish and the test stayed green.

Every_Unset_Arm_Actually_Resets_Something consumes the same helper and had no
floor at all -- strictly worse than the reported case, and not reported.

The floor now lives inside ReadUnsetArms and is per method, so both current
callers and any future one inherit it, and the failure message names the
method and its count. The existing per-method MinArms floors did not cover
this: ReadUnsetArms discarded MinArms, and that floor governs the set-arm
scan in a different test over a different population.

Measured unset-arm counts 36 (ApplyModifiers) and 12
(ApplyAccessibilityModifiers); floors 31 and 10, matching the ratios the
existing floors in this file already use (32/37, 10/12, 24/28).

Mutation receipt -- made the accessibility bag identifiers unmatchable:
both consumers failed with "Only 0 modifier-unset arm(s) were read out of
ApplyAccessibilityModifiers (expected at least 10)"; the removed combined
floor would have read 36 >= 20 and passed. Restored byte-equal, 7/7.

Tests only; no product code, and Reconciler.cs is deliberately untouched.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 0533f073-1d93-4f3a-9e34-85f02b4ddaee

---------

Co-authored-by: Copilot App <[email protected]>
Co-authored-by: z <[email protected]>
Copilot-Session: 0533f073-1d93-4f3a-9e34-85f02b4ddaee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] .Padding() is silently dropped on TextBlock (the modifier is wired for RichTextBlock but not TextBlock)

2 participants