Repository navigation
Open
Labels
area/tests π§ͺCategorizes an issue or PR as relevant to testsdifficulty/starter πCategorizes an issue for which the difficulty level is reachable by newcomersgood first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.kind/bugSomething isn't workingproject/samplesCategorizes an issue as related to first-party sample appstriage/untriagedIndicates an issue requires triaging or verification
Description
On which page? π
Microsoft.UI.Xaml.Controls/TitleBarTests/TitleBarPage (and TitleBarPageWindow), which should be in SamplesApp but is not.
What's wrong? β
The TitleBar control sample files live in src/SamplesApp/UITests.Shared/Microsoft_UI_Xaml_Controls/TitleBarTests/:
TitleBarPage.xaml/.xaml.csTitleBarPageWindow.xaml/.xaml.cs
They were added in 89701b8 ("test: Add sample UI for TitleBar"), but UITests.Shared stopped being a project in 25a7bc4 ("chore: Replace UITests.Shared shproj with .props"). Samples now live in src/SamplesApp/SamplesApp.Samples/, which globs only its own folder.
On current master (c83e458):
- No
.csproj,.props,.targets,.projitems,.sln*or.slnfmentionsUITests.Shared. git ls-tree -r master src/SamplesApp/UITests.Sharedlists only these 4 files.SamplesApp.Sampleshas noTitleBarcontrol sample (only window-levelAppWindow.TitleBarsamples underMicrosoft/UI/Windowing).
So the sample never shows up in SamplesApp and has never been compiled. A later fix (d5dde14, guard the RTL P/Invoke) also landed on the dead copy.
Confirmed by code inspection of master, not by a build.
Any feedback? π¬
Suggested fix:
- Move the 4 files to
src/SamplesApp/SamplesApp.Samples/Microsoft/UI/Xaml/Controls/TitleBarTests/(check the neighbouring folders for the current naming). - Fix the namespaces if needed, and make sure the code-behind has
[Sample]. - Build the Skia desktop head (and ideally the others), fixing whatever breaks, since this code was never compiled.
- Delete the now-empty
UITests.Sharedfolder. - Run
dotnet xstyler -fon the moved XAML files.
Metadata
Metadata
Assignees
Labels
area/tests π§ͺCategorizes an issue or PR as relevant to testsdifficulty/starter πCategorizes an issue for which the difficulty level is reachable by newcomersgood first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.kind/bugSomething isn't workingproject/samplesCategorizes an issue as related to first-party sample appstriage/untriagedIndicates an issue requires triaging or verification
Activity
PanotAbhay commentedon Oct 3, 2026
Hi, I would like to be assigned on this issue. I've requested a PR that updates two documentation files that still names the old .NET versions.