• 大小: 2.75M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: wpf  wp  主题  

资源简介

WPF控件主题资源,包括TabControl、ListBox、ComboBox、Button、ToggleButton、RadioButton、CheckBox、Slider、ProgressBar、TreeView等多个控件的样式。

资源截图

代码片段和文件信息

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

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

     文件    2475008  2009-09-10 10:25  wpfthemes主题\WPF.Themes\bin\Debug\WPF.Themes.dll

     文件      17920  2009-09-10 10:25  wpfthemes主题\WPF.Themes\bin\Debug\WPF.Themes.pdb

     文件     459104  2009-06-19 14:58  wpfthemes主题\WPF.Themes\bin\Debug\WPFToolkit.dll

     文件    1203712  2009-06-19 14:53  wpfthemes主题\WPF.Themes\bin\Debug\WPFToolkit.pdb

    .......    342127  2009-09-09 19:24  wpfthemes主题\WPF.Themes\BubbleCreme\Theme.xaml

    .......    325074  2009-09-09 19:24  wpfthemes主题\WPF.Themes\BureauBlack\Theme.xaml

    .......    324746  2009-09-09 19:24  wpfthemes主题\WPF.Themes\BureauBlue\Theme.xaml

    .......    162712  2009-09-09 19:24  wpfthemes主题\WPF.Themes\DavesGlossyControls\Theme.xaml

    .......    269625  2009-09-09 19:24  wpfthemes主题\WPF.Themes\expressionDark\Theme.xaml

    .......    269631  2009-09-09 19:24  wpfthemes主题\WPF.Themes\expressionLight\Theme.xaml

     文件     142281  2009-09-10 10:25  wpfthemes主题\WPF.Themes\obj\Debug\BubbleCreme\Theme.baml

     文件     162981  2009-09-10 10:25  wpfthemes主题\WPF.Themes\obj\Debug\BureauBlack\Theme.baml

     文件     162620  2009-09-10 10:25  wpfthemes主题\WPF.Themes\obj\Debug\BureauBlue\Theme.baml

     文件      85611  2009-09-10 10:25  wpfthemes主题\WPF.Themes\obj\Debug\DavesGlossyControls\Theme.baml

     文件     127027  2009-09-10 10:25  wpfthemes主题\WPF.Themes\obj\Debug\expressionDark\Theme.baml

     文件     127027  2009-09-10 10:25  wpfthemes主题\WPF.Themes\obj\Debug\expressionLight\Theme.baml

     文件     104343  2009-09-10 10:25  wpfthemes主题\WPF.Themes\obj\Debug\RainierOrange\Theme.baml

     文件     104332  2009-09-10 10:25  wpfthemes主题\WPF.Themes\obj\Debug\RainierPurple\Theme.baml

     文件     104251  2009-09-10 10:25  wpfthemes主题\WPF.Themes\obj\Debug\RainierRadialBlue\Theme.baml

     文件       6542  2009-09-10 10:25  wpfthemes主题\WPF.Themes\obj\Debug\ResolveAssemblyReference.cache

     文件     117334  2009-09-10 10:25  wpfthemes主题\WPF.Themes\obj\Debug\ShinyBlue\Theme.baml

     文件     120354  2009-09-10 10:25  wpfthemes主题\WPF.Themes\obj\Debug\ShinyDarkGreen\Theme.baml

     文件     103714  2009-09-10 10:25  wpfthemes主题\WPF.Themes\obj\Debug\ShinyDarkPurple\Theme.baml

     文件     103862  2009-09-10 10:25  wpfthemes主题\WPF.Themes\obj\Debug\ShinyDarkTeal\Theme.baml

     文件     117586  2009-09-10 10:25  wpfthemes主题\WPF.Themes\obj\Debug\ShinyRed\Theme.baml

     文件     180813  2009-09-10 10:25  wpfthemes主题\WPF.Themes\obj\Debug\TwilightBlue\Theme.baml

     文件      44992  2009-09-10 10:25  wpfthemes主题\WPF.Themes\obj\Debug\UXMusingsBubblyBlue\Theme.baml

     文件      66595  2009-09-10 10:25  wpfthemes主题\WPF.Themes\obj\Debug\UXMusingsGreen\Theme.baml

     文件      66595  2009-09-10 10:25  wpfthemes主题\WPF.Themes\obj\Debug\UXMusingsRed\Theme.baml

     文件     125448  2009-09-10 10:25  wpfthemes主题\WPF.Themes\obj\Debug\UXMusingsRoughGreen\Theme.baml

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

评论

共有 条评论