首页
/ 【限时免费】 【HandyControl】开源下载和安装教程

【限时免费】 【HandyControl】开源下载和安装教程

2026-02-04 04:45:55作者:申梦珏Efrain

1、项目介绍

HandyControl是一套基于WPF的控件库,提供80+自定义控件及完整的原生样式重写,支持.NET 4.0+和VS2022开发环境。其特点包括:

  • 丰富的UI组件(如时间轴、轮播图、对话框等)
  • 高度可定制的主题和样式
  • 中英文双语支持

2、项目下载位置

  • GitHub主仓库https://github.com/HandyOrg/HandyControl
  • 码云镜像https://gitee.com/handyorg/HandyControl

3、项目安装环境配置

必备环境

  • 操作系统:Windows 7/10/11
  • 开发工具:Visual Studio 2022
  • .NET版本:≥4.0

环境配置示例
(图示:.NET版本要求提示)

4、项目安装方式

方式一:NuGet安装(推荐)

  1. 在VS2022中右键项目 → 管理NuGet程序包
  2. 搜索 HandyControl → 安装最新稳定版

方式二:源码编译

git clone https://github.com/HandyOrg/HandyControl.git
cd HandyControl
# 使用VS2022打开 HandyControl.sln 并生成解决方案

5、项目处理脚本

快速引入资源字典

在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>

控件使用示例

<Window xmlns:hc="https://handyorg.github.io/handycontrol">
    <hc:Button Content="HandyControl按钮" Style="{StaticResource ButtonPrimary}"/>
</Window>
登录后查看全文
热门项目推荐
相关项目推荐