Update Windows App SDK to 2.1.3#2181
Merged
Merged
Conversation
Bump WindowsAppSdkPackageVersion from 2.0.1 to 2.1.3 (latest stable). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
|
/azp run |
marcelwgn
approved these changes
May 23, 2026
marcelwgn
pushed a commit
that referenced
this pull request
May 29, 2026
Use the new TitleBar drag-region behavior shipped in Windows App SDK 2.1 (spec: microsoft/microsoft-ui-xaml#10936, tracking: microsoft/microsoft-ui-xaml#10421). ## What changed **MainWindow** - Drop the fixed `Width=320` on the title bar `AutoSuggestBox` and let it stretch up to `MaxWidth=480`. - The framework now recursively walks `TitleBar.Content` and auto-excludes only interactive controls from the drag region, so the empty space around the stretched search box remains draggable. The narrow fixed width was previously needed to leave a draggable area; that workaround is no longer necessary. **TitleBar sample page** - Add a new ControlExample demonstrating: - The new default behavior with a stretching `AutoSuggestBox` inside a `Grid`. - The `TitleBar.IsDragRegion` attached property (per-element override) on a status badge `Border`, toggleable via a `ToggleSwitch` between `True` (draggable) and `False` (clickable). - The `TitleBar.RecomputeDragRegions()` method, invokable via a button for the "I changed Content dynamically" scenario. ## Dependencies Builds on the WindowsAppSDK 2.1.3 bump from #2181 (merged into this branch). ## Notes `TitleBar.AutoRefreshDragRegions` from the spec is not yet shipped in WindowsAppSDK 2.1.3 (verified by attempting to compile against it), so it is intentionally not demonstrated. Once it ships, the sample can be extended with a third toggle. --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+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.
Bumps
WindowsAppSdkPackageVersionfrom2.0.1to2.1.3(latest stable on NuGet) instandalone.props.Verified clean Debug x64 build.