Custom title bar not working in Unpackaged mode of Winui3 in Windows 10

Sachi 221 Reputation points
2022-05-09T12:33:22.157+00:00

Hi,
I have created Winui3vApp with custom title bar by using below link
https://learn.microsoft.com/en-us/windows/apps/develop/title-bar?msclkid=e23d7633cf9311eca704e47ee540cf97&tabs=wasdk

the windows default caption buttons works in packaged mode but not working in unpackaged
Even after adding compatability code in App.manifest .

is there any way to make custom titlebar in winui3 unpackaged mode Windows 10 OS?

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
749 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 83,106 Reputation points
    2022-05-10T13:20:33.753+00:00

    I just uploaded a test sample which works fine on my OS (Windows 10 21H1) : WinUI3_CustomCaption

    I added the 2 styles from generic.xaml in App.xaml to customize System Buttons (rounded for the test) :

    200666-winui3-customtitlebar.jpg

    1 person found this answer helpful.