agentleFS
MicrosoftKnown publishermicrosoft/microsoft-ui-xaml/Samples/TableViewSampleApp/AGENTS.md

microsoft-ui-xaml / TableViewSampleApp

AGENTS.md8.5k starsChanged 2 months agoMITView on GitHub

The end-user quick start is in README.md. This file records how the sample is wired and why, for anyone maintaining it. The sample used to hand-wire around the product, because TableView's type information was withheld from the public winmd and its theme resources did not resolve in a consuming app. It linked raw build output, regenerated its own CsWinRT projection, injected a XAML metadata provider, seeded an internal template part into XamlTypeInfo, compiled the control's theme resources out of the…

Trending

Quiet since August.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 1 mentionSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/microsoft-ui-xaml repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about microsoft/microsoft-ui-xaml

The biggest 5 of 24 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 24

Talked about on GitHub, Hacker News and Bluesky (24 times).

On GitHub · 12

7 more on GitHub

On Hacker News · 11

6 more on Hacker News

On Bluesky · 1

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository6 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If you find yourself reaching for one of those workarounds again, that is a signal the product regressed.

    line 19

≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

TableView sample — build notes

The end-user quick start is in README.md. This file records how the sample is wired and why, for anyone maintaining it.

There is nothing unusual here any more

The sample used to hand-wire around the product, because TableView's type information was withheld from the public winmd and its theme resources did not resolve in a consuming app. It linked raw build output, regenerated its own CsWinRT projection, injected a XAML metadata provider, seeded an internal template part into XamlTypeInfo, compiled the control's theme resources out of the control source tree, merged activatable-class registrations into its own app manifest, and staged the control DLL next to the EXE.

None of that is needed. The project file is now ~60 lines and the sample is an ordinary package consumer, modelled on the ChartApp samples — the existing pattern in this repo for a separately-built control set.

If you find yourself reaching for one of those workarounds again, that is a signal the product regressed. Check, in order:

  1. Tabular types are in the public merged winmd (MergedWinMD), not gated out.
  2. <ActivatableClass> registrations are emitted — they derive from the same merge inputs, so a withheld winmd silently removes them too.
  3. The control's theme XBFs ship in the package and its default-style URI is authority-less ms-appx:///, matching the path in AppxPriInitialPath.

How it builds

TableView is not in any published Microsoft.WindowsAppSDK.WinUI package yet, so the sample only compiles against a locally packed component. Build.cmd samples handles that — it runs pack.component.cmd and then builds every sample with the matching /p:WinUIVersion:

.\Build.cmd product
.\Build.cmd samples

Building the project on its own resolves Microsoft.WindowsAppSDK.WinUI from the feed instead, and fails with CS0234: The type or namespace name 'Tabular' does not exist — the package is real, it just predates Tabular in the public winmd. To iterate on this app alone, pack and override:

.\pack.component.cmd /version 3.0.0-mylocal
.\initrun.ps1 msb /q /restore Samples\TableViewSampleApp\TableViewSampleApp.csproj /p:Platform=x64 /p:WinUIVersion=3.0.0-mylocal

NuGet caches by version under packages\microsoft.windowsappsdk.winui\, so re-packing the same version after a control change is silently ignored — use a fresh version string, or delete that folder first.

The control DLL, its .pri and its theme XBFs arrive from the package. The consuming app's build expands every referenced .pri and re-indexes it into the app's own TableViewSampleApp.pri, which is why that file is several megabytes: it contains MUXC's and Tabular's resources as well as the sample's.

Two things worth knowing

Tabular's theme resources must be merged. The control resolves its own generic.xaml from the package, but the theme resources that default style depends on live in TabularControlsResources, so App.xaml merges that alongside XamlControlsResources. SortIndicator ships in the Tabular DLL rather than in MUXC — controls/Tabular.ProjectImports.targets is the only importer of SortIndicator.vcxitems — so SortIndicatorForeground, which TableView's column-header style resolves, is absent from MUXC's dictionary. Dropping the merge produces XamlParseException 0x802B000A on the first layout pass, seen as a 0xC000027B stowed exception shortly after launch. If a table appears with no header row, that is a different problem: it is almost always no declared columns, not a missing dictionary.

TableView is [MUX_PREVIEW]. C# usage raises CS8305, suppressed via NoWarn in the project file. XAML usage raises WMC1501 once per page; those are deliberately left visible.

Entry point

Program.cs provides Main and the project defines DISABLE_XAML_GENERATED_MAIN, following the DisableXamlGeneratedMain sample. This is a normal WinUI pattern, not a workaround.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.