初步使用HandyControl,一款开源WPF控件神器

本文主要是记录第一次如何使用在WPF项目中使用HandyControl控件库

第一步:首先创建你的WPF项目工程 

第二步:在Nuget中安装HandyControl,直接在Nuget中搜索HandyControl即可(下载量最高的就可以) 

第三步:在项目中的App.xaml中添加(把HandyControl的资源文件添加进来)

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

第四步:在设计器页面中添加 xmlns:controls="clr-namespace:HandyControl.Controls;assembly=HandyControl" 

第五步:直接使用控件即可(controls:控件名)

 最终效果图,是不是比很好看,哈哈哈哈

HandyControl控件库我也是刚使用,还有许多不足望各位多多指教

 

posted @   咸鱼晒干  阅读(131)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
点击右上角即可分享
微信分享提示