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

TitleBar doesn't show Subtitle/Header/Content/Footer #9694

Closed
Poker-sang opened this issue Jun 5, 2024 · 7 comments
Closed

TitleBar doesn't show Subtitle/Header/Content/Footer #9694

Poker-sang opened this issue Jun 5, 2024 · 7 comments
Labels
area-TitleBar Issues related to custom window title bars. bug Something isn't working team-Controls Issue for the Controls team

Comments

@Poker-sang
Copy link

Describe the bug

TitleBar doesn't show the Header/Content/Footer. However when I set it in XAML Hot Reload it appears.

Steps to reproduce the bug

<Window x:Class="App.MainWindow" ...>
    <Grid RowDefinitions="auto,*">
        <TitleBar
            x:Name="TitleBar"
            Title="312"
            Grid.Row="0">
            123
        </TitleBar>
    </Grid>
</Window>
public MainWindow()
{
    InitializeComponent();
    ExtendsContentIntoTitleBar = true;
    SetTitleBar(TitleBar);
}

Expected behavior

Show the Header/Content/Footer

Screenshots

image

NuGet package version

None

Windows version

Windows Insider Build (xxxxx)

Additional context

WASDK 1.6

@Poker-sang Poker-sang added the bug Something isn't working label Jun 5, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Jun 5, 2024
@Poker-sang Poker-sang changed the title TitleBar doesn't show the Header/Content/Footer TitleBar doesn't show Header/Content/Footer = Jun 5, 2024
@Poker-sang Poker-sang changed the title TitleBar doesn't show Header/Content/Footer = TitleBar doesn't show Header/Content/Footer Jun 5, 2024
@ghost1372
Copy link
Contributor

ghost1372 commented Jun 5, 2024

Subtitle also does not shown, changing focus display it.

@Poker-sang Poker-sang changed the title TitleBar doesn't show Header/Content/Footer TitleBar doesn't show Subtitle/Header/Content/Footer Jun 5, 2024
@dotMorten
Copy link
Contributor

I'm seeing this behavior too:

titlebarbug.mp4

Looks like it's only functional with hotreload.

@riverar
Copy link
Contributor

riverar commented Jun 5, 2024

I'm curious about how bugs like this make it into the experimental release. Can we review the process to see if there are any areas for improvement?

@ghost1372
Copy link
Contributor

I'm curious about how bugs like this make it into the experimental release. Can we review the process to see if there are any areas for improvement?

It seems they used a different version in ms build And we're using an early version. As you can see here, the title bar works well in ms build.

@ranjeshj
Copy link
Contributor

ranjeshj commented Jun 6, 2024

A perf fix to delay load left the initial load broken. There is a workaround documented in the release notes. The issue is already fixed and will make it into the next release.
https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/experimental-channel#new-titlebar-control

@riverar
Copy link
Contributor

riverar commented Jun 6, 2024

A bit frustrating that Microsoft slipped this into the docs 5 hours ago and none of the involved parties thought to close the loop here. Thank you @ranjeshj for the heads up! MicrosoftDocs/windows-dev-docs@465e1e1

@codendone codendone added team-Controls Issue for the Controls team area-TitleBar Issues related to custom window title bars. and removed needs-triage Issue needs to be triaged by the area owners labels Jun 7, 2024
@ranjeshj
Copy link
Contributor

The fix is checked in, should be available in the next release.

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. bug Something isn't working team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

6 participants