Skip to content
New issue

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

Standard window icons (Close, Minimize,Maximize) disappear after minimizing when ExtendsContentIntoTitleBar is used #6789

Closed
1 of 2 tasks
andreaslennartz opened this issue Mar 4, 2022 · 3 comments
Labels
area-TitleBar Issues related to custom window title bars. product-winui3 WinUI 3 issues team-Reach Issue for the Reach team

Comments

@andreaslennartz
Copy link

Describe the bug

When we use the ExtendsContentIntoTitleBar feature (as described in the docs) with the current WinUI 3 version, the standard icons at the top right (Close, Minimize, Maximize) disappear when the window was minimized. They reappear when hovering over the icons with the mouse.

Before minimizing:
image

After minimizing:
image

Hovering over the icons:
image

Steps to reproduce the bug

Create a new WInUI 3 desktop application (using Visual Studio default tempalte), and add a customized title bar to the Main window following the docs: https://docs.microsoft.com/en-us/windows/apps/develop/title-bar?tabs=winui3

XAML:

 <Grid x:Name="AppTitleBar"
            Margin="8,0,120,0">            
                <TextBlock VerticalAlignment="Center" Text="TitleText" />
        </Grid>

Code behind:

 public MainWindow() {
            this.InitializeComponent();
            this.Title = "TitleText";
            //Full customization of title bar: https://docs.microsoft.com/en-us/windows/apps/develop/title-bar?tabs=winui3
            ExtendsContentIntoTitleBar = true;
            SetTitleBar(AppTitleBar);
        }

Start the application. Verify that the icons at the top right (Close, Maximize, Minimize) are visible. Minimize the window and bring it back into view again. See that the icons disappeared.

Expected behavior

The standard icon (Close, Minimize, Maximize) should always be visible. They should never disappear.

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.0

Windows app type

  • UWP
  • Win32

Device form factor

Desktop

Windows version

Windows 11 (21H2): Build 22000, Windows 10 (21H2): Build 19044

Additional context

No response

@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Mar 4, 2022
@andreaslennartz andreaslennartz changed the title Standard window icon (Close, Minimize,Maximize) disappear after minimizing when ExtendsContentIntoTitleBar is used Standard window icons (Close, Minimize,Maximize) disappear after minimizing when ExtendsContentIntoTitleBar is used Mar 4, 2022
@StephenLPeters StephenLPeters added area-TitleBar Issues related to custom window title bars. product-winui3 WinUI 3 issues team-Rendering Issue for the Rendering team labels Mar 4, 2022
@StephenLPeters
Copy link
Contributor

@codendone and @pratikone FYI

@codendone codendone added team-Reach Issue for the Reach team and removed team-Rendering Issue for the Rendering team labels Mar 5, 2022
@pratikone
Copy link
Contributor

see if it is fixed in latest 1.0.1 release. I rememebering encountering something similar and providing a fix for it.

@andreaslennartz
Copy link
Author

@pratikone : yes, I can confirm that this is fixed with 1.0.1 now.
Thanks for your support!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-TitleBar Issues related to custom window title bars. product-winui3 WinUI 3 issues team-Reach Issue for the Reach team
Projects
None yet
Development

No branches or pull requests

4 participants