快捷搜索: 王者荣耀 脱发

手把手一起使用开源WPF控件HandyControl

1、创建WPF工程

首先创建WPF工程

2、安装HandyControl

点击工具->NuGet包管理器->管理解决方案的NuGet程序包,如图所示:

直接搜索HandyControl,如图所示:

点击安装:

安装完成:

3、App.xaml加代码

在App.xaml中加入如下代码:

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

如图所示:

4、开始使用HandyControl

工具箱中已新增HandyControl,可以开始使用,如图所示:

HandyControl:

希望本文对大家有帮助,上文若有不妥之处,欢迎指正

分享决定高度,学习拉开差距

经验分享 程序员 微信小程序 职场和发展