Tabview like manipulate9/16/2023 ![]() ![]() Setting my root grid to have IsHitTestVisible="False" made them functional but broke everything else. Removing WindowChromeStyle, and then setting background to transparent to all views made the original min/max/close buttons appear but non functional. After some searching I found people who said the same thing and it appeared to be a shortcoming of WinUI3 (also correct me if I am wrong but WinUI3 = WindowsAppSDK?) I originally followed the doc but found that my min/max/close buttons disappeared. From what I understand of what it's doing, its re-drawing the min/max/close buttons from scratch?Įxtending app content into the title bar does not affect the window buttons (Minimize, Maximize, and Close). And when you will use window will shrink/hide systems TitleBar and only have buttons left.įor me editing WindowChromeStyle is more useful and less painful then having systems TitleBar buttons even with Windows 11, from what I had which was broken turns out it was missing the giant code snippet which was your WindowChromeStyle. If im correct when we use Microsoft.UI. we geting WindowChromeStyle buttons (you can see system TitleBar buttons when resizing window relay fast). ![]() ![]() If app have static colors and no need for custom TitleBar its ok to use AppWindow.TitleBar to set and forget ab it, because you should not use this api with custom TitleBar from Microsoft.UI. Anyway you need app Microsoft.UI.Xaml.Window to set custom TitleBar, and with switching between dark and light in app we just need api for access RequestedTheme of apps root control like or even deeper, because now we only can change Microsoft.UI.Xaml.Window RequestedTheme, while WindowChromeStyle will have system's theme, which will set the same RequestedTheme to Titlebar.Button, and we will have hot mess where apps Titlebar.Buttons Foreground have almost the same Titlebar-App Background. Dont forget ExtendsContentIntoTitleBar = true and it's hot mess with TitleBar api. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |