WPF的类似Metro的主题 [英] Metro-like theme for WPF

查看:75
本文介绍了WPF的类似Metro的主题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道在哪里可以得到类似于WPF的Windows Zune应用程序(或MetroTwit)的主题.

I would like to know where i can get the theme that looks like Zune application for Windows (or MetroTwit) for WPF.

我用谷歌搜索,但是我只得到Silverlight 4的主题,而不是WPF.

I google it but i only get the theme for Silverlight 4, not WPF.

推荐答案

复活一个死掉的帖子,也许是在自我促进吗?但是,我(相对而言最近)比我更确定地启动了Metro主题包,该主题包主要基于我在MahTweets中创建的内容以及专门针对 WPF

Resurrecting a dead post, perhaps, self promoting? More than certain, however, I've (relatively recently) started a Metro theme pack largely based on stuff I've created in MahTweets and from the Silverlight Cosmopolitan theme pack specifically for WPF

https://github.com/MahApps/MahApps.Metro

用法很简单,只需

<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colours.xaml"/>
            <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml"/>
            <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml"/>
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</Application.Resources>

关于WPF处理其他程序集主题的方式,需要注意一些注意事项.

There are some caveats over the way WPF handles theming from other assemblies that you will have to look into.

它是免费的开放源代码,如果其他人正在WPF中寻找这种东西,它会喜欢进一步的贡献.

It's free, open source and would love further contributions if others are looking for this sort of thing in WPF.

这篇关于WPF的类似Metro的主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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