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 development | Windows App SDK
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 91,506 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.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.