使WPF应用程序看起来地铁风格,即使是在Windows 7? (窗口镶边/主题化/主题) [英] Making WPF applications look Metro-styled, even in Windows 7? (Window Chrome / Theming / Theme)

查看:650
本文介绍了使WPF应用程序看起来地铁风格,即使是在Windows 7? (窗口镶边/主题化/主题)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢新的办公套件和Visual Studio的窗口镶边:

I like the window chrome on the new Office Suite and Visual Studio:

我还在开发用于Windows,当然7应用程序,但我不知道是否有一个快速简便的方法(阅读:WPF样式或Windows库)来模拟这种风格。我已经做了,在过去的一些窗口镶边造型,但得到它的外观和行为正好是真正棘手。

I'm still developing applications for Windows 7 of course, but I'm wondering if there's a quick and easy way (read: WPF style or Windows Library) to emulate this style. I've done some window chrome styling in the past, but getting it to look and behave just right is really tricky.

有谁知道是否有存在的模板或库中增加了现代用户界面外观和感觉我的WPF应用程序?

Does anyone know if there are existing templates or libraries to add a "Modern UI" look and feel to my WPF applications?

推荐答案

我最终选择的解决方案是 MahApps.Metro github上),这(使用它在两个软件后,现在)我认为一个优秀的UI工具包的 (信贷<一个href="http://stackoverflow.com/questions/13592326/making-wpf-applications-look-metro-styled-even-in-windows-7-window-chrome-t/15500408#comment20895299_13592326">Oliver沃格尔的建议)的。

The solution I ended up choosing was MahApps.Metro (github), which (after using it on two pieces of software now) I consider an excellent UI kit (credit to Oliver Vogel for the suggestion).

它的外观具有所需的很少的努力中的应用,并具有标准的Windows 8控件的调整。这是非常强大的。

It skins the application with very little effort required, and has adaptations of the standard Windows 8 controls. It's very robust.

一个版本可以的NuGet:

A version is available on Nuget:

您可以使用GUI通过的NuGet安装MahApps.Metro(右键点击   你的项目,管理的NuGet参考,搜索MahApps.Metro')或   通过控制台:

You can install MahApps.Metro via Nuget using the GUI (right click on your project, Manage Nuget References, search for ‘MahApps.Metro’) or via the console:

PM>安装,包装MahApps.Metro

PM> Install-Package MahApps.Metro

这也是免费 - 甚至用于商业用途

It's also free -- even for commercial use.

我发现Github上版本MahApps.Metro是挤满了控件和样式不可用在当前的NuGet版本,包括:

I discovered that the Github version of MahApps.Metro is packed with controls and styles that aren't available in the current nuget version, including:

GitHub的库非常活跃,相当多的用户贡献。我建议检查出来。

The github repository is very active with quite a bit of user contributions. I recommend checking it out.

这篇关于使WPF应用程序看起来地铁风格,即使是在Windows 7? (窗口镶边/主题化/主题)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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