Skip to content

Conversation

luca-domenichini
Copy link

This PR is fix for #1483
It adds a CenterContent DependencyProperty and a new column in the Grid of TitleBar, making developer able to put content in the center area of the titlebar.

Moreover, with HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" we make developer able to align the centered area more precisely, to the left, center or right edge.

Pull request type

Please check the type of change your PR introduces:

  • Update
  • Bugfix
  • [✔] Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes

What is the current behavior?

Currently there are few, less obvious alternatives.

Issue Number: #1483

What is the new behavior?

Devs are now able to put content directly in the centered area of the title bar.

@github-actions github-actions bot added controls Changes to the appearance or logic of custom controls. styles Topic is related to styles PR Pull request dotnet release titlebar Titlebar updates labels Jul 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
controls Changes to the appearance or logic of custom controls. dotnet PR Pull request release ⭐ top pull request Top pull request. styles Topic is related to styles titlebar Titlebar updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant