• 大小: 2.04M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: wpf  皮肤  

资源简介


资源截图

代码片段和文件信息

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

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-09-07 05:28  BuildProcessTemplates\
     文件       65836  2011-09-07 05:28  BuildProcessTemplates\DefaultTemplate.xaml
     文件        6878  2011-09-07 05:28  BuildProcessTemplates\UpgradeTemplate.xaml
     目录           0  2011-09-07 05:28  Package\
     文件      292864  2011-09-07 05:28  Package\NuGet.exe
     文件      847260  2011-09-07 05:28  Package\WPF Themes.0.0.1.nupkg
     文件      847253  2011-09-07 05:28  Package\wpfthemes.0.0.1.nupkg
     文件         516  2011-09-07 05:28  Package\wpfthemes.nuspec
     目录           0  2011-09-07 05:28  WPF.Themes.Demo\
     文件         144  2011-09-07 05:28  WPF.Themes.Demo\app.config
     文件         381  2011-09-07 05:28  WPF.Themes.Demo\App.xaml
     文件         577  2011-09-07 05:28  WPF.Themes.Demo\App.xaml.cs
     目录           0  2011-09-07 05:28  WPF.Themes.Demo\Properties\
     文件        2324  2011-09-07 05:28  WPF.Themes.Demo\Properties\AssemblyInfo.cs
     文件        2854  2011-09-07 05:28  WPF.Themes.Demo\Properties\Resources.Designer.cs
     文件        5612  2011-09-07 05:28  WPF.Themes.Demo\Properties\Resources.resx
     文件        1094  2011-09-07 05:28  WPF.Themes.Demo\Properties\Settings.Designer.cs
     文件         201  2011-09-07 05:28  WPF.Themes.Demo\Properties\Settings.settings
     文件        4413  2011-09-07 05:28  WPF.Themes.Demo\Window1.xaml
     文件        3445  2011-09-07 05:28  WPF.Themes.Demo\Window1.xaml.cs
     文件        6415  2011-09-07 05:28  WPF.Themes.Demo\WPF.Themes.Demo.csproj
     文件        1419  2011-09-07 05:28  WPF.Themes.sln
     文件      102912  2011-09-07 05:28  WPF.Themes.suo
     目录           0  2011-09-07 05:28  WPF.Themes\
     目录           0  2011-09-07 05:28  WPF.Themes\BubbleCreme\
     文件      341259  2011-09-07 05:28  WPF.Themes\BubbleCreme\Theme.xaml
     目录           0  2011-09-07 05:28  WPF.Themes\BureauBlack\
     文件      283553  2011-09-07 05:28  WPF.Themes\BureauBlack\Theme.xaml
     目录           0  2011-09-07 05:28  WPF.Themes\BureauBlue\
     文件      283186  2011-09-07 05:28  WPF.Themes\BureauBlue\Theme.xaml
     目录           0  2011-09-07 05:28  WPF.Themes\DavesGlossyControls\
............此处省略43个文件信息

评论

共有 条评论