如何在WPF窗口中设置标题的对齐方式? [英] How Can I Set The Alignment Of Title In The WPF Window?

查看:113
本文介绍了如何在WPF窗口中设置标题的对齐方式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

没有使用功能区需要在WPF窗口中设置标题的对齐

with out using Ribbon need to set the alignment of title in WPF window

推荐答案

如果将其添加到 Window Element Title = Name ;之后


TextBlock.TextAlignment = Center; 添加到窗口元素。



否则你可以参考以下



在wpf的microsoft窗口标题栏中放置标题 [ ^ ]



希望它能为您提供帮助。
The following works if you add it to your Window Element right after Title=Name;.

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

else you can refer the below

location of title in title bar in microsoft window in wpf[^]

Hope it will help you.


这篇关于如何在WPF窗口中设置标题的对齐方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆