Skip to content

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

@niels9001

Description

@niels9001

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-TitleBarIssues related to custom window title bars.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions