zoukankan      html  css  js  c++  java
  • Open-source Tutorial

    安装 Material Design Themes

    • 通过 NuGet 包管理器搜索自动安装

    • 通过 NuGet 包管理器控制台手动安装

      Install-Package MaterialDesignThemes
      

    配置 App.xaml

    • 主题

      • 对于 Light 主题(二选一):

        < ResourceDictionary  Source = “ pack:// application:,,, / MaterialDesignThemes.Wpf; component / Themes / MaterialDesignTheme.Light.xaml ” />
        
      • 对于 Dark 主题(二选一):

        < ResourceDictionary  Source = “ pack:// application:,,, / MaterialDesignThemes.Wpf; component / Themes / MaterialDesignTheme.Dark.xaml ” />
        
      • 默认

        < ResourceDictionary  Source = “ pack:// application:,,, / MaterialDesignThemes.Wpf; component / Themes / MaterialDesignTheme.Defaults.xaml ” />
        
    • 颜色

      < ResourceDictionary  Source = “ pack:// application:,,, / MaterialDesignColors; component / Themes / Recommended / Primary / MaterialDesignColor.COLOR_NAME.xaml ” />
      < ResourceDictionary  Source = “ pack:// application:,,, / MaterialDesignColors; component / Themes / Recommended / Accent / MaterialDesignColor.COLOR_NAME.xaml ” />
      

    配置窗体

    • 基础配置

      <Window [...]
              TextElement.Foreground="{DynamicResource MaterialDesignBody}"
              Background="{DynamicResource MaterialDesignPaper}"
              [...] >
      
    • 完整配置

      <Window [...]
              TextElement.Foreground="{DynamicResource MaterialDesignBody}"
              Background="{DynamicResource MaterialDesignPaper}"
              TextElement.FontWeight="Medium"
              TextElement.FontSize="14"
              FontFamily="pack://application:,,,/MaterialDesignThemes.Wpf;component/Resources/Roboto/#Roboto"
              [...] >
      
  • 相关阅读:
    java一个简单的线程池小例子
    java通过反射复制实体类
    java通过反射获取Object的属性
    java时间对比
    软件工程基础最后第一次作业 总结
    C++语言程序化设计——第五次作业
    软件工程基础——第四次作业
    C++语言程序化设计——第四次作业
    软件工程基础第三次作业——原型设计
    C++语言程序化设计——第三次作业
  • 原文地址:https://www.cnblogs.com/zdfffg/p/10350576.html
Copyright © 2011-2022 走看看