介绍几款WPF应用的UI库

在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

=======================================================================================

国人开发的免费开源wpf ui控件库 handycontrol

官网 https://handyorg.gitee.io/handycontrol/quick_start/

https://gitee.com/handyorg/HandyControl

https://github.com/HandyOrg/HandyControl/blob/master/README-cn.md

编译视频  https://www.bilibili.com/video/BV1Yb4y1D7JP

demo下载地址  https://github.com/HandyOrg/HandyControl/releases/tag/v3.1.0

 

 

例子源代码:  GitHub - AFei19911012/HandyControl ,WPF HandyControl各个控件使用案例;修改主题、颜色、语言。

 

同时,MVVM 请下载共享项目,放在同级目录即可
http://github.com/AFei19911012/GalaSoft.MvvmLight

 

 

出处:https://www.cnblogs.com/simadi/p/14690356.html

参考:https://zhuanlan.zhihu.com/p/393756032

posted on   jack_Meng  阅读(3598)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· DeepSeek “源神”启动!「GitHub 热点速览」
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· C# 集成 DeepSeek 模型实现 AI 私有化(本地部署与 API 调用教程)
· DeepSeek R1 简明指南:架构、训练、本地部署及硬件要求
· NetPad:一个.NET开源、跨平台的C#编辑器
历史上的今天:
2019-08-15 Oracle锁表与解锁 对象锁与解锁
2018-08-15 IBM websphere MQ使用说明
2018-08-15 IBM MQ相关 ---- 系列文章
2018-08-15 用IBM MQ中间件开发碰到的MQRC_NOT_AUTHORIZED(2035)问题
2015-08-15 Oracle中OEM的启动与关闭
2015-08-15 plsql Developer----plsql软件总结(待续更新)
2015-08-15 Oracle中查询前10条记录 ---- Top的变相用法

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8
点击右上角即可分享
微信分享提示

喜欢请打赏

扫描二维码打赏

支付宝打赏

主题色彩