【问题标题】:WPF controls look like WinForms - what settings I'm missing?WPF 控件看起来像 WinForms - 我缺少哪些设置?
【发布时间】:2014-11-14 20:28:13
【问题描述】:

我在服务器(Microsoft Server 2008 R2 Enterprise - Service Pack 1)上运行我的 WPF 应用程序 (.Net 4.0)。

在我的台式机上,所有 WPF 控件看起来都不错。在服务器上,它们中的许多看起来非常糟糕,就像完全没有样式的 WinForms 控件。

您能否建议机器需要什么样的配置才能正确显示 WPF 控件。

【问题讨论】:

  • 您需要在服务器上安装航空主题

标签: .net wpf winforms .net-4.0 wpf-controls


【解决方案1】:

我很确定这与 Server 2008 R2 对经典主题的使用有关。

我会在这里查看这篇博文:http://www.kennethham.com/wp/2010/11/force-wpf-to-use-windows-7aero-theming-in-classic-mode/

您需要强制应用程序使用 Win7/Aero 主题。

【讨论】:

  • 这似乎正是这里发生的事情。我在 Windows 2008 Server R2 上远程工作。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2011-10-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-03-18
  • 2023-03-06
  • 2020-11-17
相关资源
最近更新 更多