Switch gallery to use experimental self-contained WinAppSDK and showcase new windowing APIs - #2229
Open
Jesse Collins (JesseCol) wants to merge 8 commits into
Open
Conversation
Target one experimental SDK across normal configurations, bundle its runtime, and migrate appropriate samples to Window sizing properties. Keep AppWindow-focused examples unchanged, fix self-contained version reporting, and remove obsolete sizing helpers. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Jesse Collins (JesseCol)
marked this pull request as ready for review
September 11, 2026 17:42
## Description Clearly highlights when a sample is using experimental APIs, and adds PagerControl examples. ## How Has This Been Tested? Manual testing ## Screenshots (if appropriate): <img width="676" height="408" alt="image" src="https://github.com/user-attachments/assets/63021d03-151b-412e-a985-bc7b09036467" /> <img width="1107" height="512" alt="image" src="https://github.com/user-attachments/assets/811d5353-7108-486f-8c19-20bf28ecd982" /> ## Types of changes <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [ ] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change)
Restore existing window samples to stable APIs, add a Windowing page using shared experimental tags, and display the SDK channel on Home and Settings. Keep the unrelated test-host resource fix out of this commit. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
## Description Allows individual samples to be marked experimental Also merges the two windowing samples into one. ## How Has This Been Tested? <!--- Please describe in detail how you tested your changes. --> <!--- Include details of your testing environment, and the tests you ran to --> <!--- see how your change affects other areas of the code, etc. --> ## Screenshots (if appropriate): <img width="806" height="1063" alt="image" src="https://github.com/user-attachments/assets/be2064dd-f268-45bc-969b-5e0719cba976" /> ## Types of changes <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change)
Carry MaxWidth and MaxHeight into the combined Windowing page, preserve the stable ResizeClient example, clarify units per example, and remove the InkToolbar catalogue entry whose missing page broke the build. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Provide concise C# alternatives and XAML declarations for window sizing and constraints. Remove the PagerControl sample while preserving the shared experimental-label support. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This content was largely generated by AI. AI makes mistakes.
Description
Make Gallery use an experimental WinAppSDK build
2.4.1-experimentalwith the normal Debug/Release configurations. Bundle WinAppSDK with Gallery and the unit-test host using self-contained deployment.Windows App SDK 2.4 (experimental), and update the regression test.Showcase the new windowing APIs
AppWindow.ResizeClient(); the other examples demonstrateWindow.Width,Height,MinWidth,MinHeight,MaxWidth, andMaxHeight.MainWindowfor minimum sizing and persistence across launches, supporting packaged and unpackaged storage.Motivation and Context
Gallery should demonstrate upcoming WinUI features while clearly distinguishing experimental examples from stable guidance. Shared tags support both entirely experimental pages and mixed pages with individually marked examples.
Self-contained deployment avoids a dependency on an experimental WinAppSDK framework package. It does not change the experimental SDK's support status or guarantee Store certification.
The Windowing examples distinguish the physical pixels accepted by
AppWindow.ResizeClient()from the display-scaled client dimensions used by the experimental Window sizing properties.How Has This Been Tested?
Windows x64, Visual Studio 2022, .NET 9, WinAppSDK
2.4.1-experimental.GalleryTileGridStyle, which appears unrelated; that test and its resource setup are unchanged frommain. The VersionHelper regression passed separately.Not tested: latest maximum-size interactions, multi-monitor DPI transitions, clean-machine installation, or Store certification. The unrelated test-host resource fix is not included in this PR.
Screenshots (if appropriate):
Combined Windowing APIs page, captured locally by Jesse:
Types of changes