We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If you set AppWindow.TitleBar.IconShowOptions to HideIconAndSystemMenu, the icon and the system menu are not hidden
<WindowsSdkPackageVersion>10.0.19041.35-preview</WindowsSdkPackageVersion>
<StackPanel Orientation="Horizontal"> <TextBlock Text="Hide AppIcon:" VerticalAlignment="Center" Margin="10,0" /> <ToggleSwitch Toggled="HideIcon_Switched" /> </StackPanel>
And this code to MainWindow.xaml.cs
private void HideIcon_Switched(object sender, RoutedEventArgs e) { if (sender is ToggleSwitch toggleSwitch) { AppWindow.TitleBar.IconShowOptions = toggleSwitch.IsOn ? IconShowOptions.HideIconAndSystemMenu : IconShowOptions.ShowIconAndSystemMenu; } }
When you tun the code, changing the toggleswitch doesn't change the icon or the system menu
This project shows a sample of the bug: https://github.com/brunosonnino/TitleBarBugs/tree/main/2%20-%20TitleBarHeight
A workaround for this is to set the TitleBar IconSource property to null (but this still shows the system menu)
The setting should be respected
Icon "Shown" Icon "Hidden"
WinUI 3 - Windows App SDK 1.6 Experimental 2: 1.6.240701003-experimental2
Windows 11 (22H2): Build 22621
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
If you set AppWindow.TitleBar.IconShowOptions to HideIconAndSystemMenu, the icon and the system menu are not hidden
Steps to reproduce the bug
And this code to MainWindow.xaml.cs
When you tun the code, changing the toggleswitch doesn't change the icon or the system menu
This project shows a sample of the bug: https://github.com/brunosonnino/TitleBarBugs/tree/main/2%20-%20TitleBarHeight
A workaround for this is to set the TitleBar IconSource property to null (but this still shows the system menu)
Expected behavior
The setting should be respected
Screenshots
Icon "Shown"
Icon "Hidden"
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
The text was updated successfully, but these errors were encountered: