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

Window.ExtendsContentIntoTitleBar can't be set in XAML #10365

Open
niels9001 opened this issue Feb 17, 2025 · 2 comments
Open

Window.ExtendsContentIntoTitleBar can't be set in XAML #10365

niels9001 opened this issue Feb 17, 2025 · 2 comments
Labels
area-TitleBar Issues related to custom window title bars. bug Something isn't working

Comments

@niels9001
Copy link
Contributor

niels9001 commented Feb 17, 2025

Describe the bug

The Window class in WinUI 3 has a ExtendsContentIntoTitleBar property. However, it's not usable and requires a developer to set this in code-behind.

When set in XAML, the project does not compile throwing the following error: The XAML Binary Format (XBF) generator reported syntax error '0x09C4' : Property Not Found

THIS DOES NOT WORK
Image

THIS WORKS

Image

Steps to reproduce the bug

  1. Create a new project
  2. Open MainWindow.xaml
  3. Set ExtendsContentTitleBar="True" in the Window object
  4. Press F5
  5. Error is thrown and does not compile.

Workaround

  1. Open MainWindow.xaml.cs
  2. Set ExtendsContentIntoTitleBar in the contructor.
  3. Press F5

Expected behavior

This should just work in XAML as it's shown by IntelliSense and it's a property that can be set in code-behind.

Image

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.7 Preview 1: 1.7.250208002-preview1

Windows version

Windows 11 (24H2): Build 26100

Additional context

No response

@niels9001 niels9001 added the bug Something isn't working label Feb 17, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Feb 17, 2025
Copy link

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!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@DarranRowe
Copy link

DarranRowe commented Feb 17, 2025

Yes, there are long standing issues here where GenXbf.dll doesn't understand ExtendsContentIntoTitleBar, and there is also an issue with Title where the value for that differs.

I wonder if this is caused by the fact that GenXbf.dll would have naturally started its life off as targetting the UWP, and either the binary format generator or the binary format was never extended to understand additional properties on Window. Windows.UI.Xaml.Window has no ExtendsContentIntoTitleBar, this was a work around for WinUI 3.

@snigdha011997 snigdha011997 added area-TitleBar Issues related to custom window title bars. and removed needs-triage Issue needs to be triaged by the area owners labels Feb 19, 2025
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
Projects
None yet
Development

No branches or pull requests

3 participants