
#Logtail nowrap for windows 10
I guess I cant have both so I will just use the default TitleBar for windows 10 devices as long as WinUI doesnt officially support transparent/blurred windows. If you set Microsoft.UI. = true this doesnt happen (since this just trims everything in the TitleBar except the buttons).įor windows 11 devices I can use Microsoft.UI. = true but sadly this doesnt work on windows 10 ( ).

If you set ExtendsContentIntoTitleBar = true the GetClientRect (winuser.h) method is kinda buggy (since it removes the entire TitleBar and creates its own) which breaks the TitleBar in some cases. These calls include GetClientRect (winuser.h) and FillRect (winuser.h) etc. Since WinUI 3 doesnt actually support transparent windows yet I am using some win32 calls which also uses WS_EX_LAYERED.

This works fine but this messes with my transparent window. Windows 11 (21H2): Build 22000 Additional context WinUI 3 - Windows App SDK 1.0 Windows app type Set the ExtendsContentIntoTitleBar to true and set the AppTitleBar with SetTitleBar() in the MainWindow constructorĮxpected behavior is that the custom TitleBar is working like a normal TilteBar with all functions like dragging, right clicking, minimizing, maximizing and closing like the documentation says here.Copy the xaml code from into the MainWindow.xaml window.

Create a new WinUi3 application with visual studio.Tested with Microsoft.WindowsAppSDK 1.0.3 and 1.1.0-preview1 on Windows 11 21H2.
