Metro-like theme for WPF [closed]

一个人想着一个人 提交于 2019-11-28 19:52:56

问题


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

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


回答1:


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

Usage is simple, just

<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>

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

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



来源:https://stackoverflow.com/questions/3458382/metro-like-theme-for-wpf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!