资源简介

十几款 WPF 界面皮肤及其 Demo 程序。

资源截图

代码片段和文件信息

namespace WPF.Themes
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Reflection;
    using System.Text;
    using System.Windows;
    using System.Windows.Controls;
    
    public static class ThemeManager
    {
        public static ResourceDictionary GetThemeResourceDictionary(string theme)
        {
            if (theme != null)
            {
                Assembly assembly = Assembly.LoadFrom(“WPF.Themes.dll“);
                string packUri = String.Format(@“/WPF.Themes;component/{0}/Theme.xaml“ theme);
                return Application.LoadComponent(new Uri(packUri UriKind.Relative)) as ResourceDictionary;
            }
            return null;
        }

        public static string[] GetThemes()
      

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      59198  2013-01-03 22:26  wpfthemes-81799\BuildProcessTemplates\DefaultTemplate.11.1.xaml

     文件      65836  2013-01-03 22:26  wpfthemes-81799\BuildProcessTemplates\DefaultTemplate.xaml

     文件      22647  2013-01-03 22:26  wpfthemes-81799\BuildProcessTemplates\LabDefaultTemplate.11.xaml

     文件       6878  2013-01-03 22:26  wpfthemes-81799\BuildProcessTemplates\UpgradeTemplate.xaml

     文件     292864  2013-01-03 22:26  wpfthemes-81799\Package\NuGet.exe

     文件     847260  2013-01-03 22:26  wpfthemes-81799\Package\WPF Themes.0.0.1.nupkg

     文件     847253  2013-01-03 22:26  wpfthemes-81799\Package\wpfthemes.0.0.1.nupkg

     文件        516  2013-01-03 22:26  wpfthemes-81799\Package\wpfthemes.nuspec

     文件    2353664  2013-01-16 09:55  wpfthemes-81799\WPF.Themes\bin\Debug\WPF.Themes.dll

     文件      17920  2013-01-16 09:55  wpfthemes-81799\WPF.Themes\bin\Debug\WPF.Themes.pdb

     文件     341259  2013-01-03 22:26  wpfthemes-81799\WPF.Themes\BubbleCreme\Theme.xaml

     文件     283553  2013-01-03 22:26  wpfthemes-81799\WPF.Themes\BureauBlack\Theme.xaml

     文件     283186  2013-01-03 22:26  wpfthemes-81799\WPF.Themes\BureauBlue\Theme.xaml

     文件     161429  2013-01-03 22:26  wpfthemes-81799\WPF.Themes\DavesGlossyControls\Theme.xaml

     文件     229844  2013-01-03 22:26  wpfthemes-81799\WPF.Themes\expressionDark\Theme.xaml

     文件     234607  2013-01-03 22:26  wpfthemes-81799\WPF.Themes\expressionLight\Theme.xaml

     文件     141732  2013-01-16 09:55  wpfthemes-81799\WPF.Themes\obj\Debug\BubbleCreme\Theme.baml

     文件     145041  2013-01-16 09:55  wpfthemes-81799\WPF.Themes\obj\Debug\BureauBlack\Theme.baml

     文件     144680  2013-01-16 09:55  wpfthemes-81799\WPF.Themes\obj\Debug\BureauBlue\Theme.baml

     文件      84842  2013-01-16 09:55  wpfthemes-81799\WPF.Themes\obj\Debug\DavesGlossyControls\Theme.baml

     文件       6093  2013-01-16 09:55  wpfthemes-81799\WPF.Themes\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件     112145  2013-01-16 09:55  wpfthemes-81799\WPF.Themes\obj\Debug\expressionDark\Theme.baml

     文件     112145  2013-01-16 09:55  wpfthemes-81799\WPF.Themes\obj\Debug\expressionLight\Theme.baml

     文件        136  2013-01-16 09:55  wpfthemes-81799\WPF.Themes\obj\Debug\GenerateResource.read.1.tlog

     文件        320  2013-01-16 09:55  wpfthemes-81799\WPF.Themes\obj\Debug\GenerateResource.write.1.tlog

     文件     102909  2013-01-16 09:55  wpfthemes-81799\WPF.Themes\obj\Debug\RainierOrange\Theme.baml

     文件     103023  2013-01-16 09:55  wpfthemes-81799\WPF.Themes\obj\Debug\RainierPurple\Theme.baml

     文件     102958  2013-01-16 09:55  wpfthemes-81799\WPF.Themes\obj\Debug\RainierRadialBlue\Theme.baml

     文件     104854  2013-01-16 09:55  wpfthemes-81799\WPF.Themes\obj\Debug\ShinyBlue\Theme.baml

     文件     120351  2013-01-16 09:55  wpfthemes-81799\WPF.Themes\obj\Debug\ShinyDarkGreen\Theme.baml

............此处省略137个文件信息

评论

共有 条评论