首页 > 其他分享 >介绍几款WPF应用的UI库

介绍几款WPF应用的UI库

时间:2023-08-15 21:35:29浏览次数:32  
标签:com App UI https WPF 官网 几款 xaml

在WPF中对于前端页面的书写,我们有现成的UI类库,不需要我们自己再去写
我这里介绍几款
1、MahApps
官网

https://mahapps.com/

使用,在App.xaml中添加

 <Application.Resources>
     <ResourceDictionary>
         <ResourceDictionary.MergedDictionaries>
             <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
             <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
             <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Themes/Light.Blue.xaml" />
         </ResourceDictionary.MergedDictionaries>
     </ResourceDictionary>
 </Application.Resources>

主界面引入

    xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"

修改MainWindow为mah:MetroWindow

2、MaterialDesign
官网

http://materialdesigninxaml.net/

App.xaml引入

 xmlns:md="http://materialdesigninxaml.net/winfx/xaml/themes"

使用,在App.xaml中添加

 <Application.Resources>
     <ResourceDictionary>
         <ResourceDictionary.MergedDictionaries>
             <md:BundledTheme
                 BaseTheme="Light"
                 PrimaryColor="LightGreen"
                 SecondaryColor="Lime" />
             <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" />
         </ResourceDictionary.MergedDictionaries>
     </ResourceDictionary>
 </Application.Resources>

3、HandyOrg

https://handyorg.gitee.io/handycontrol/

使用,在App.xaml中添加

 <Application.Resources>
     <ResourceDictionary>
         <ResourceDictionary.MergedDictionaries>
             <ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/SkinDefault.xaml" />
             <ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/Theme.xaml" />
         </ResourceDictionary.MergedDictionaries>
     </ResourceDictionary>
 </Application.Resources>

4、LayUI
官网没有Gitee

https://gitee.com/ywk1916b/Layui-WPF

使用,在App.xaml添加

<Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/LayUI.Wpf;component/Themes/Default.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
</Application.Resources>

 

出处:https://www.cnblogs.com/guchen33/p/17631582.html

标签:com,App,UI,https,WPF,官网,几款,xaml
From: https://www.cnblogs.com/mq0036/p/17632501.html

相关文章

  • 使用C++界面框架ImGUI开发一个简单程序
    目录简介使用示例下载示例main文件设置ImGui风格设置字体主循环添加Application类中文编码问题界面设计关于imgui_demo.cpp创建停靠空间创建页面隐藏窗口标签栏创建导航页面创建内容页面隐藏控制台窗口打包程序总结待解决问题开发优势附件简介ImGui是一个用于C++的用户界面库,跨......
  • ui自动化从登录到新增数据
    fromseleniumimportwebdriverfromtimeimportsleepfromselenium.webdriver.common.byimportBy#通过ID来定位driver=webdriver.Chrome()driver.maximize_window()driver.get('https://www.jdy.com/login/')#打开网站sleep(3)driver.find_element(By.ID,'......
  • layui-form 提交按钮不生效
    layui-form提交按钮不生效有时候layui-form不生效是因为div的层级关系错误造成的,比如把提交按钮放在了div的外部了;欢迎关注公-众-号【TaonyDaily】、留言、评论,一起学习。Don’treinventthewheel,librarycodeistheretohelp.文章来源:刘俊涛的博客若有帮助到您,欢迎点赞、......
  • GUI编程
    typora-root-url:./GUI编程告诉大家该怎么学?这是什么它怎么玩?该如何去在我们平时运用?class--可阅读组件窗口弹窗面板文本框列表框按钮图片监听事件鼠标键盘时间破解工具1、简介Gui的核心技术:SwingAWT因为界面不美观需要jre环境为什么我们还......
  • elementUi中的radio回显之后无法选择的问题
    情况:在用el-radio时,在回显数据之后,点击其他的radio想要选择的时候,勾选不了。原因:接口返回数据中没有声明radio的对应变量,导致直接赋值给list中未声明的变量,所以双向绑定不会被vue监听,即没有刷新。=》vue中对数据双向绑定的支持限于基本添加删除的方法,详情看官网解决方案:1、原本......
  • StringBuilder类
    StringBuilder类由于String是不变对象,每次修改内容都要创建新对象,因此String不适合做频繁修改操作.为了解决这个问题,java提供了StringBuilder类.packagestring;​/***频繁修改字符串带来的性能损耗.*/publicclassStringDemo2{  publicstaticvoidmain(String[]......
  • SpringBoot3 学习笔记 (整合Druid)
    一、Druid Github地址:https://github.com/alibaba/druid/二、配置数据源1、在https://mvnrepository.com/artifact/com.alibaba/druid上找最新的版本 2、在pom.xml中添加上Druid数据源依赖<!--https://mvnrepository.com/artifact/com.alibaba/druid--><dependency......
  • vue2使用富文本编辑器vue-quill-editor
    一、将图片保存为base64编码(不建议)使用步骤:1、 安装vue-quill-editornpminstallvue-quill-editor-S2、main.js中全局引入//富文本编辑器importVueQuillEditorfrom'vue-quill-editor'import'quill/dist/quill.core.css'import'quill/dist/quill.snow.css'......
  • MAUI+Masa Blazor APP 各大商店新手发布指南(一)App Store篇
    目录前言新手常见审核意见Guideline2.1-InformationNeededGuideline2.1-Performance-AppCompletenessGuideline2.3.8-Performance-AccurateMetadataGuideline5.1.1(v)-DataCollectionandStorageGuideline4.2-Design-MinimumFunctionalityGuideline4.......
  • 介绍几款WPF应用的UI库
    在WPF中对于前端页面的书写,我们有现成的UI类库,不需要我们自己再去写我这里介绍几款1、MahApps官网https://mahapps.com/使用,在App.xaml中添加<Application.Resources><ResourceDictionary><ResourceDictionary.MergedDictionaries><Resourc......