Repository navigation
Description
Reactor is still in preview, so this is the time to drop compatibility shims for API shapes that were superseded before (or during) the preview. Anything we keep now becomes a commitment once the first stable release ships.
This issue tracks finding and removing that code. Each item needs evidence that it's safe to remove before it goes.
First item: ModifiedElement
ModifiedElement(Element Inner, ElementModifiers WrappedModifiers) is documented as "Kept for backward compatibility. New code stores modifiers inline on Element.Modifiers."
- The fluent modifiers stopped producing it in internal commit
8e95edc80(2026-03-20). That was long before the OSS launch (Pre-launch hardening: security review remediations + OSS launch prep #102, 2026-05-01) and beforev0.1.0-preview.1(2026-06-09), so no public release ever produced it from the DSL. - Today
.Margin(),.Background(),.OnMount()and every other modifier go throughModify<T>inElementExtensions.cs, which stores modifiers inline withel with { Modifiers = … }. - Nothing in
src,samples,toolsor the docs constructs it. Only selftest and unit fixtures do, to cover the compat path. - The framework still pays for it. Unwrap loops and special cases live in
Reconciler.Mount/Update,Reconciler.Modifiers,Reconciler.SourcePublishing,Reconciler.ReactorState,KeyedListDiff,ReactorSourcePublisherandElement.cs. Make Border BorderBrush and Canvas Background modifiers win over the record #1790 also had to add a merged-modifiers copy for Border/Canvas just to keep this path correct. A throwaway benchmark measured that copy at about 224 extra bytes per legacy-wrapped Border on every update.
Migration for an app that builds one by hand is mechanical:
// before
new ModifiedElement(inner, mods)
// after (ElementModifiers.Merge is public), or just use the fluent modifiers
inner with { Modifiers = inner.Modifiers?.Merge(mods) ?? mods }Removing it means deleting the type and its unwrap paths, converting or deleting the fixtures that exist only for this path, regenerating reactor.api.txt (both copies) and the reference docs, fixing the snippet in docs/guide/reconciliation.md, and adding a CHANGELOG Removed entry with the migration above.
Other candidates (to be filled in)
Look for public or internal surface that exists only to keep an older Reactor shape working. Some patterns to search for:
- Types, members or overloads documented as "legacy", "backward compat", "kept for compatibility" or "obsolete", or marked
[Obsolete]. - Forwarders or aliases left behind after a rename or move, where the new name is the only one the docs teach.
- Dual code paths where the framework no longer produces one of the shapes.
- Options or flags whose only job is to restore pre-preview behavior.
Each candidate goes in the checklist below with its evidence before anything is removed:
- When and why the old shape was replaced (commit or PR).
- That nothing in the framework, samples, templates, the agent kit or the docs still produces or recommends it.
- Who would break (public vs. internal) and the migration.
- Whether it shipped in a public preview, and for how long.
Anything that's still the recommended way to do something, or where the evidence is unclear, stays out.
Checklist
-
ModifiedElement: remove the type and its unwrap paths (Remove the legacy ModifiedElement record #1820) - Obsolete fluent modifier aliases in
ElementExtensions.cs(Visible,Disabled,ShowAddButtonand the rest) plus theirModifierSchemaaliases -
ReactorApp.ActiveHost -
TreeViewNodeData.ContentElementand its reconciler paths -
RedrawonChartHandle<T>,PieChartHandle<T>andTreeChartHandle -
IDockBehaviorandDockManager.Behavior -
ItemsHostOptions - Internal
PersistedStateCacheshim - Internal
LocaleContext -
--previewand--preview-listdevtools aliases, after moving the doc pipeline, contributor docs and the VS Code extension fallback to--devtools - Make
DockableContentabstract and drop its positional constructor in favor ofDocument/ToolWindow. Map saved"dockableContent"panes toDocumenton load and move the gallery, test app, docking guide and serializer internals over - Move the taskbar implementation into
TaskbarItemand drop theReactorWindowshortcuts (Progress,Overlay,SetThumbnailToolbar,ClearThumbnailToolbar) - Finish the DataGrid hook-paging migration. Port the client-side sort and filter fallback to the hook path, make it the default, then delete
DataPageCache<T>,DataGridState.PageCache,RowKeyCacheandReactorFeatureFlags.UseHookBasedPaging
Evidence for each item is in #1819 (comment) and the decisions on the last four are in #1819 (comment)
Activity
azchohfi commentedon Dec 3, 2026
I went through
srclooking for code that only exists to keep an older Reactor shape compiling or running. Everything in the first list was replaced or marked obsolete beforev0.1.0-preview.1(June 9), so none of it was ever the current API in a public preview. All of it still ships in every preview up tov0.1.0-preview.18(Nov 12). I searchedsrc,samples,tools,docs(guide templates and pipeline apps),skills/andplugins/, and ran a positive control for each search so a zero really means zero.ModifiedElementis left out since it's already being handled.Ready to remove
1. Obsolete fluent modifier aliases in
ElementExtensions.csVisible,Disabled,DisabledFocusable,Selectable,ReadOnly(TextBox and RatingControl),Editable,Closable,Active,IsAddButtonVisible,ShowAddButton,LightDismiss, and bothAccessKeyDisplayRequestedoverloads.[Obsolete]since then..IsVisible(41 times, so it does match real usage.reactor.api.txtalready skips them, so the agent kit never sees them..Visible(x)→.IsVisible(x),.Disabled()→.IsEnabled(false),.ShowAddButton()→.IsAddTabButtonVisible(),.AccessKeyDisplayRequested(h)→.OnAccessKeyDisplayRequested(h)."Visible"and"Disabled"aliases from the.Fluent(...)rows inModifierSchema.csand regenerating the reference docs.2.
ReactorApp.ActiveHostReactorApp.PrimaryWindowandReactorApp.Windowsin the window model work (Spec 036: Window model — full implementation (Phases 1-8) #215, 2026-05-08) and marked[Obsolete]in the same PR. Spec 036 §12.4 planned to keep it for two releases and delete it in the third. We're 18 previews in.ActiveHostInternal. The only mention outside the declaration isdocs/research/investigations/winforms-interop.md, which is a research write-up, not guidance.ReactorApp.PrimaryWindow?.Host, or pick a window fromReactorApp.Windows.3.
TreeViewNodeData.ContentElement[Obsolete]in fix(treeview): typed data-driven TreeView<T> with per-container hosting (#447) #453 (the fix for [Bug] TreeView does not render per-nodeContentElement(ListView/GridView do) - #447, 2026-05-30). Node-mode TreeView can't host a prebuilt element, and the doc comment itself says this path renders blank under virtualization recycling. The typedTreeView<T>(items, keySelector, childrenSelector, viewBuilder)replaced it.Reconciler.Mount(around line 718),Reconciler.Update(around 2034), theTreeChildrenstrategy inChildrenStrategy.cs(around 410 to 495) andReconciler.SourcePublishing(around 489). TheGeneratedBindableCustomPropertyscoping on the record is there partly to avoid CS0618 on this property.docs/guide/control-reconciler-protocol.mdstill mentions an "optional per-nodeContentElement" and needs a one-line fix.TreeView<T>with aviewBuilder.4.
RedrawonChartHandle<T>,PieChartHandle<T>andTreeChartHandle177143783, 2026-04-12, before the OSS launch). The method bodies are empty, so a call today silently does nothing.OnReadystill uses them to hand out theCanvas.setData(newData).5.
IDockBehaviorandDockManager.BehaviorOnContentDocked,OnContentFloatingandOnContentFloated. Both are[Obsolete]with "slated for removal one release after Phase 2 ships".Behavioror callsOnDocked/OnFloating, so setting it already has no effect. No sample, doc or skill uses it.6.
ItemsHostOptionsItemsHostOptionsargument for two days while it was still[Experimental](spec(047): Phase 1+2 — V1 protocol + descriptor authoring (A|B baseline) #422 on 2026-05-26, replaced in spec(047): Phase 3-final descriptor scale-out (Batches A-G1) #436 on 2026-05-28). No preview ever shipped anything that accepts it.7. Internal
PersistedStateCacheshim (Core/PersistedStateCache.cs)ApplicationPersistedScopearrived. The last caller in src went away in Spec 036: Window model — full implementation (Phases 1-8) #215 (2026-05-08).PersistedStateTests,ComponentModelIntegrationTests).ApplicationPersistedScope.Default.8. Internal
LocaleContext(Core/Localization/LocaleContext.cs)IntlContexts.Localereplaced it (internal commite955fe114, 2026-04-08).LocaleProviderComponentstill creates one and setsLocaleContext.Current, but nothing readsCurrentor subscribes to it any more.LocaleProviderElement.cs. TheSharedMessageCache.Flush()that currently runs inside the second effect should stay as a plain effect on locale change.Needs a decision
--previewand--preview-listdevtools flags. This coversDevtoolsCliParser, the publicDevtoolsCliOptions.UsedDeprecatedPreviewand the VS Code extension's fallback. They were renamed to--devtoolsin27e89d916(2026-04-18), before the OSS launch, so every public package has--devtools. But our own doc pipeline still launches apps with--preview --vscode(tools/Reactor.DocPipeline/ScreenshotCapture.cs), anddocs/contributing/doc-pipeline.mdanddocs/security/threat-model.mdstill use it. Do we migrate those and drop the alias and the VS Code fallback, or keep the alias through stable?DockableContent's Phase 1 positional constructor. Its doc says it's kept for Phase 1 source compat, and spec 045 §5.3.1 planned an analyzer pointing people toDocument(...)andToolWindow(...). That analyzer was never written, and the gallery docking page, the test app, the docking guide and the layout serializer all still use the old constructor. Is it deprecated, or just the simple way to make a pane? If it's deprecated, samples and docs need to move first.ReactorWindow(Progress,Overlay,SetThumbnailToolbar,ClearThumbnailToolbar).TaskbarItem(Spec 054: Windowing evolution #536, 2026-06-06) groups the same features, and the docs say the window shortcuts stay "for compatibility". Both shapes landed before preview.1. The desktop integration guide lists both, while the skills only teachUseWindow()!.TaskbarItem. Keep the shortcuts as convenience API, or makeTaskbarItemthe only surface? The implementation lives onReactorWindow, so dropping them means moving it.DataPageCachepath behindReactorFeatureFlags.UseHookBasedPaging, plusDataGridState.RowKeyCache, which is documented as legacy. This is a rollout flag rather than compat code, and the old path is still the default.ReactorFeatureFlagssays a flag goes away once its default flips, so shipping stable with it public commits us to both paths. Finish the migration first, or ship the flag?Looked at and left out
ReactorApp.Run<TRoot>andRun(string, Func<...>). Internal comments call them the "legacy bridge", but they're what the docs, skills and 38 sample files use to start an app.IDockAdapter. Its remarks say it will collapse into Action props, but it isn't obsolete and the docking guide still teaches it.scope: "app"alias.mur'sset-resource --scope appand the devtools skill still use that spelling.GridSizePxRenameRule. Reactor never hadGridSize.Pixel,PixelsorFixed, so it's a did-you-mean for WPF habits, not a migration.murcode that detects or uninstalls the oldMicrosoft.UI.Reactor.ProjectTemplatespack. That's dev machine cleanup, not API.ElementFactoryandIItemViewSourceabout the int-index and element-based list paths. Those are live paths, not old shapes.azchohfi commentedon Dec 3, 2026
Decided on the four that were open. We're going with the new shape for all of them, so they're now in the checklist.
--previewgoes. The doc pipeline, contributor docs and the VS Code fallback move to--devtoolsfirst.DockableContentbecomes abstract and the positional constructor goes. A plain pane is its own neutral role today, so saved layouts with"dockableContent"panes need to load asDocument. Note thatDocumentdefaults toCanClose = trueand routes to the document area.ReactorWindowtaskbar shortcuts go andTaskbarItembecomes the only surface.LoadDataAsynchas for sources withoutServerSortorServerFilter, so that has to be ported before the default flips andDataPageCacheis deleted.Remove the legacy ModifiedElement record (#1819) (#1820)
Address review round 1