如何在 Windows 8/2012 中左对齐窗口标题? [英] How to left align window title in Windows 8 / 2012?

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

问题描述

有没有办法(本质上)在 Windows 8 或 2012 机器中左对齐窗口标题?

Is there a way to (intrinsically) left align window title in Windows 8 or 2012 machine?

Window 8 或 2012 中的窗口标题水平居中对齐.

The Window's title in Window 8 or 2012 is horizontally center-aligned.

我们有一个移植到 Windows 8/2012 机器的 WPF 应用程序.我们正在与我们的几个客户一起测试它,并且客户需要像在 Window 7 或 XP 中一样左对齐窗口的标题.

We have a WPF application that is ported to Windows 8 / 2012 machine. We are testing it along with couple of our clients and the clients need the title of the window to be left aligned as it was in Window 7 or XP.

我知道我们可以在 WPF 中使用 ControlTemplate 来做到这一点,但这对于这个小东西来说太过分了.

I know we can do this using ControlTemplate in WPF but that would be too much for this little thing.

我相信随着更多应用程序被移植到 Windows 8/2012,这个问题将会出现.

I am sure this is question is going to come up as more applications are ported to Windows 8 / 2012.

有什么快速的解决方案吗?或者您是否知道 Microsoft 是否会在 Windows 8 或 2012 的最终版本中提供这种灵活性?

Is there any quick solution to this? Or do you know if Microsoft is going to give this flexibility in final releases of Windows 8 or 2012?

推荐答案

Windows 8 中的所有窗口标题都居中对齐.强制应用程序标题在 Windows 8 中左对齐几乎就像强制最小化和最大化按钮显示在窗口的左侧.

All window titles in Windows 8 are center aligned. Forcing an application title to be left aligned in Windows 8 would be almost like forcing the minimize and maximize buttons to show up on the left side of the window.

您可以使用 DevExpress 的 DXWindow 等自定义绘图窗口来完成此操作.看到这个帖子:

You may be able to accomplish this using a custom draw window like DXWindow from DevExpress. See this post:

http://www.devexpress.com/Support/Center/p/Q298641.aspx

但是,该应用程序在 Windows 8 上会显得格格不入,并且可能无法通过桌面应用程序认证.

However, the application will appear out of place on Windows 8 and may not pass desktop application certification.

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

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