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

前端 未结 2 556
既然无缘
既然无缘 2021-02-13 16:03

How do the center aligned ?

\"enter

相关标签:
2条回答
  • 2021-02-13 16:44

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

    0 讨论(0)
  • 2021-02-13 16:46

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

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

    0 讨论(0)
提交回复
热议问题