Skip to content

Update Windows App SDK to 2.1.3#2181

Merged
marcelwgn merged 1 commit into
microsoft:mainfrom
niels9001:update-wasdk-2.1.3
May 23, 2026
Merged

Update Windows App SDK to 2.1.3#2181
marcelwgn merged 1 commit into
microsoft:mainfrom
niels9001:update-wasdk-2.1.3

Conversation

@niels9001
Copy link
Copy Markdown
Collaborator

Bumps WindowsAppSdkPackageVersion from 2.0.1 to 2.1.3 (latest stable on NuGet) in standalone.props.

Verified clean Debug x64 build.

Bump WindowsAppSdkPackageVersion from 2.0.1 to 2.1.3 (latest stable).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@marcelwgn
Copy link
Copy Markdown
Contributor

/azp run

@marcelwgn marcelwgn enabled auto-merge (squash) May 23, 2026 11:45
@marcelwgn marcelwgn merged commit d2cb41f into microsoft:main May 23, 2026
2 checks passed
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants