Open brunosonnino opened 3 months ago
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
@brunosonnino this is working fine. It seems you forgot to apply the title bar:
public MainWindow()
{
this.InitializeComponent();
ExtendsContentIntoTitleBar = true;
SetTitleBar(AppTitleBar);
}
<TitleBar Title="Hello" Subtitle="v1.2.3" x:Name="AppTitleBar"/>
All options work well
you can close this issue
@ghost1372 The problem is not in the titlebar buttons - it's in the Titlebar itself - in your gif, you can see that the titlebar has always the same height, it doesn't change, but it should change height (or disappear when you choose collapsed). The buttons change, but the titlebar (which should change), no
@brunosonnino oh i got it Adding content may solve the problem, but it adds other problems
<TitleBar.Content>
<AutoSuggestBox Width="320"/>
</TitleBar.Content>
@ghost1372 when you add the autosuggest, it goes to tall, but doesn't return to standard or hide
Describe the bug
The TitleBar has always the Standard Height and doesn't respect the AppWindow.TitleBar.PreferredHeightOption setting
Steps to reproduce the bug
Add this code in MainWindow.xaml.cs
Add this code to MainWindow.xaml
Run the project. If you change the radio button, the bar stays the same, but the title bar height changes (you can check by trying the buttons and the in-app-toolbar in the app). For the Collapsed settings, the buttons disappear, and you can't move the window anymore
This project has a sample of the bug: https://github.com/brunosonnino/TitleBarBugs/tree/main/2%20-%20TitleBarHeight
Expected behavior
The TitleBar should respect the setting
Screenshots
Standard Tall Collapsed
NuGet package version
WinUI 3 - Windows App SDK 1.6 Experimental 2: 1.6.240701003-experimental2
Windows version
Windows 11 (22H2): Build 22621
Additional context
No response