开发者

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

开发者 https://www.devze.com 2023-03-25 00:42 出处:网络
How开发者_StackOverflow do the center aligned ? The following works if you add it to your Window Element right after Title=\"Name\".

How开发者_StackOverflow do the center aligned ?

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


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

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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消