* build: the main line on .NET 11 - SDK 11.0.100, net11.0, the three runtime-serviced packages at 11.0.0; Windows 10 stated as untested and unsupported (D94, D95) (beta.37 PR-1) The owner moved the main line to .NET 11 the day after it shipped (D94), setting aside condition (a) of 20_OPEN_QUESTIONS section G's table - two alphas on the released runtime. This is the alpha branch's switch applied to main at released versions, and what follows from it. - global.json 11.0.100 (allowPrerelease false), TFM net11.0-windows10.0.22621.0, Microsoft.Extensions.Hosting, Microsoft.Data.Sqlite and System.Diagnostics.EventLog 11.0.0; legal/licenses/nuget regenerated (78 packages -> 69). - Two CA1307 sites the released SDK raised in tests written after the last alpha was cut take the (char, StringComparison) overload. - IHost.RunAsync rethrows a failed BackgroundService on .NET 11: the Agent's --serve leaves through its crash report where it exited 0. Accepted, not wrapped; HostBackgroundFailureTests holds the runtime's behaviour, which nothing had observed. - release.yml installs a .NET 10 runtime for vpk 1.2.161; Qodana's container installs the .NET 11 SDK first (interim, until the Ultimate linter); Dependabot's and the workflows' comments follow. - Windows 10 22H2 is not blocked, and is stated as untested and unsupported (D95): NFR-8, LIMITATIONS, README, the guide, the wiki. A processor needs SSE4.2 and POPCNT. - docs: 12_BUILD (the main line's .NET; the alpha line rests after alpha.4, D98), 13_CI_CD, 20_OPEN_QUESTIONS row closed, 10_LOGGING, spike-notes section 28, CLAUDE.md, the decisions index (D94-D96, D98). Gate on the dev box: all passed in 338 s on SDK 11.0.100 (native 32/32, 2,561 tests, coverage floors held). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * build: what this pull request's runs measured on .NET 11 - CodeQL reads net11.0 whole, the delta from beta.36, Qodana's one finding fixed - HostBackgroundFailureTests: the message is kept rather than the exception, so no `!` is needed - the one problem Qodana's interim run reported (run 42916491047, InspectCode 2026.2.3.1 on SDK 11.0.100). - 13_CI_CD: what analyze (csharp, none) read of net11.0 (CodeQL 2.27.4, "scanned 1220 out of 1220 C# files", 363 references resolved, none unresolved), and the rule for C# 15 constructs (D96); the interim's first run. - spike-notes section 28: the table of this pull request's runs - check, CodeQL, SonarCloud, Qodana, and the release rehearsal with the first delta across two runtime majors (72.6 MB, 372 of 443 files patched). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
4.6 KiB
App UI development
The screens are specified, and described as built, in docs/08_UI.md; the rules for the UI library
are docs/16_WPFUI_SYNTAX.md. The App is src/FrameLedger.App: WPF on .NET 11 with
WPF UI 4.3.0 (pinned), CommunityToolkit.Mvvm, ScottPlot for charts and Markdig for documents.
How it is put together
- A .NET Generic Host with dependency injection. Pages and their view models are transient — a page is made again on
every navigation, so state lives in the view models' services and the database, never in a page. The one exception
(beta.34): the window keeps the library page it built (
WindowPageCache) and the page reads the library again each time it is shown. A view model that listens to a service attaches on its page's Loaded and detaches on Unloaded, and is neverIDisposable: the container keeps every transient disposable it makes until the App exits. - The ledger's reads run on the thread that calls them (Microsoft.Data.Sqlite completes its asynchronous calls synchronously): anything heavy after one — decoding a session, sorting its frames — is put on the thread pool.
- Navigation goes only through WPF UI's
INavigationService; a page implementsINavigableView<TViewModel>. - The App opens
ledger.dbitself to read; anything that acts on the PC — hooking, deleting sessions, pausing — is a request to the agent over the pipe. FrameLedger.exe --data-dir <copy>is a viewer: no agent, no update, the controls that would change the PC disabled.
Strings
Every user-visible string comes from .resx, in English, Vietnamese and Japanese (src/FrameLedger.App/Strings.resx
and its .vi and .ja siblings; the shared ones are in src/FrameLedger.Shared). tools/resx-gen.ps1 writes the
accessor class, and tools/resx-audit.ps1 fails the build when a key is missing in a language. The safety texts in
Japanese wait for a human reviewer, never a machine draft (docs/09_I18N.md).
Colours and theme
Colours come only from WPF UI's theme brushes, by DynamicResource — never a hex value, never StaticResource for a
theme brush. Muted text uses the App's SecondaryText and TertiaryText styles (src/FrameLedger.App/Styles/FrameLedger.xaml),
and every page sets the theme's text colour on its root.
The chart palettes are the one place a colour is written out, once per theme. The game page's artwork band is the one
colour worked out in code: the artwork's own, as strongly as every text on it still reads, recomputed when the theme
changes.
The traps of WPF UI 4.3.0
Each of these cost a release; the full list, with the tests that hold each, is §Gotchas checklist of
docs/16_WPFUI_SYNTAX.md.
ui:TextBlock Appearance=looks its brush up once: a theme switch leaves the text in the old theme's colour.- A page is shown in a
Frame, which passes it no text colour: a text that sets none is black, on the dark theme too. - A class handler on
Loadeddoes not reach every element: WPF raises Loaded only where a subtree listens for it. - Every page sets
ScrollViewer.CanContentScroll="False", or WPF UI wraps it in a scroller that eats the mouse wheel; a scroller inside a dialog is aui:PassiveScrollViewer. - A scroll bar is hidden through its scroller's own
ScrollBarVisibility, never a style on the bar. ui:InfoBardraws no content (the App's copy of its template does);ui:Badgepalette appearances are not theme colours; WPF UI's DataGrid parts have keyed styles only; its CheckBox is 120 px wide at least.- Esc in a dialog is
Services/DialogKeyboard's; Enter goes to aContentDialog's default button (its template'sIsDefaultfollowsDefaultButton), so choose it on purpose; ScottPlot zooms on every wheel unless told not to. - Apply the theme before the first window loads; watch the system theme only once the window has a handle.
Testing the UI
tests/FrameLedger.App.Tests renders every page, window and dialog under the real theme dictionaries on one STA thread
(PagesLoadTests.OnStaAsync): contrast in both themes, a theme switch while a surface is on screen, scroll bars with the
option on in a real window, keyboard and automation names. Each surface is hosted as the App hosts it — a page in WPF UI's
navigation presenter, not straight in a window. A rendered check is run red against the unfixed XAML first.
What the App promises a user of the keyboard, a screen reader or a contrast theme is
ACCESSIBILITY.md; the design and the checks that hold it are §Accessibility of
docs/08_UI.md. A change that moves one changes both.