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"
              [...] >
      
  • 相关阅读:
    Python:字典
    Linux基础:dirname命令总结
    (三)封装与类
    (二)Java编程基础
    Ubuntu18.04 安装QQ、Tim、微信与win无差异
    (一)JDK安装和使用eclipse输出hello world
    Java复习目录
    (八)MySQL事务、视图、变量、存储过程、函数、流程控制结构
    (七)MySQL常见的数据类型、约束和标识列
    (六)MySQL数据、库、表的管理
  • 原文地址:https://www.cnblogs.com/zdfffg/p/10350576.html
Copyright © 2011-2022 走看看