Skip to content

Upgrade Microsoft.WindowsAppSDK to 1.8.5+ for TitleBar.IconSource #205

Description

@deblasis

WinAppSDK 1.8.5 introduces a first-party TitleBar control with TitleBar.IconSource, replacing the current custom title-bar plumbing based on ExtendsContentIntoTitleBar = true + manual drag-region handling in MainWindow.xaml(.cs). See microsoft/PowerToys PR # 45532 for the pattern.

The project currently references Microsoft.WindowsAppSDK version 1.6.250602001 (see windows/Ghostty/Ghostty.csproj). A version bump unlocks several simplifications:

  1. Delete roughly 150 lines of custom title-bar / drag-region code in MainWindow.xaml(.cs).
  2. Move the AppIconBadge placement from the tab-host subtrees into TitleBar.IconSource, eliminating the dual-instance pattern introduced by the windows-branding work.
  3. Gain access to other 1.8 improvements (Mica tint fixes, input routing).

Risk: WinAppSDK major/minor bumps often require CsWinRT regeneration and may surface new trim/AOT warnings. Budget a dedicated PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency fileenhancementNew feature or requestguiGUI or app issue regardless of platform (i.e. Swift, GTK)os/windows

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions