初步使用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控件库我也是刚使用,还有许多不足望各位多多指教
本文来自博客园,作者:咸鱼晒干,转载请注明原文链接:https://www.cnblogs.com/TibosBK/p/17636905.html

浙公网安备 33010602011771号