mrJack
mrJack

Reputation: 1011

How to make a center aligned window title (window in wpf)

How do the center aligned ?

enter image description here

Upvotes: 16

Views: 15060

Answers (2)

Denni Jensen
Denni Jensen

Reputation: 209

The following works if you add it to your Window Element right after Title="Name".

Add TextBlock.TextAlignment="Center" to your window element.

Upvotes: 20

CodeNaked
CodeNaked

Reputation: 41393

You would have to use a custom Window chrome, as that is the default look of Microsoft Windows. Here is one example.

Upvotes: 4

Related Questions