HZH_Controls 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package HZH_Controls --version 1.0.1
NuGet\Install-Package HZH_Controls -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="HZH_Controls" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add HZH_Controls --version 1.0.1
#r "nuget: HZH_Controls, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install HZH_Controls as a Cake Addin
#addin nuget:?package=HZH_Controls&version=1.0.1

// Install HZH_Controls as a Cake Tool
#tool nuget:?package=HZH_Controls&version=1.0.1

NetWinform自定义控件

介绍

c#winfrom自定义控件,对触屏具有更好的操作支持,项目是基于framework4.0,完全原生控件开发,没有使用任何第三方控件,你可以放心的用在你的项目中。

博客地址:https://www.cnblogs.com/bfyx 源码地址:https://gitee.com/kwwwvagaa/net_winform_custom_control 记得点一下Star

欢迎前来交流探讨: 企鹅群568015492

如果我的代码对您有用,请打赏一点吧,谢谢,您的打赏是我的动力
源码仅用于交流学习,开源协议为GPL-3.0,如商业使用请进群联系群主授权
样例
1、提示窗效果图

样例图片 样例图片

2、多输入窗体

样例图片

3、Temp1窗体

样例图片

4、有确定取消的窗体1

样例图片

5、有确定取消的窗体2

样例图片

6、单标题窗体

样例图片

7、控件

样例图片

文本框键盘效果

样例图片 样例图片 样例图片

手写输入需要搜狗的手写支持,请复制HandInput文件夹到运行目录下

时间控件效果

样例图片 样例图片 样例图片

8、Datagridview

样例图片

当使用分页控件时,不再需要指定DataSource数据源属性,只需要指定翻页控件的DataSource属性即可

如果预置的表格行无法满足你的需求,你还可以自定义行控件,具体做法为:

  1. 新增自定义控件,实现接口IDataGridViewRow
  2. 参照UCDataGridViewRow实现你自定义的行
  3. 设置datagridview的RowType属性即可

Page属性定义了翻页控件,如果UCPagerControl不满足你的需求,请自定义翻页控件并继承UCPagerControlBase, 当为空时不启用翻页控件,当启用翻页控件时每页将显示适当的数据,不再出现滚动条。

9、翻页控件

样例图片

另一种分页控件样式

样例图片

如果UCPagerControl不满足你的需求,请自定义翻页控件并继承UCPagerControlBase,比如改变样式,增加逻辑等等

如果需要下标从10开始的一页数据,可以设置StartIndex=10,然后调用GetCurrentSource()即可,用法如下:

翻页控件可用于任何列表形式的控件,以上代码示例仅以datagridview说明用法,用法如下:

  1. 设置属性DataSource数据源
  2. 设置属性PageSize每页显示数据量
  3. 设置时间ShowSourceChanged,在时间中向目标控件设置当前页数据源
  4. 如果页面加载后没有显示第一页数据,可以手动调用一下GetCurrentSource()并赋值给目标控件即可,例如:
10、气泡提示效果图(5种内置及自定义样式)

样例图片

11、多线程操作等待

样例图片

12、菜单导航控件

样例图片

如果预置的样式无法满足你的需求,你还可以自定义节点控件,具体做法为:

  1. 新增自定义控件,实现接口IMenuItem,可分别定义父节点和子节点
  2. 参照UCMenuChildrenItem或UCMenuParentItem实现你自定义的节点
  3. 设置UCMenu的父节点ParentItemType属性和子节点ChildrenItemType属性即可

如果要修改节点样式,比如背景色等,可使用UCMenu的ParentItemStyles或ChildrenItemStyles,比如

菜单默认显示样式为Fill,当菜单项较多时会导致子项无法显示,此时你应修改菜单样式为Top即可

13、按钮组

样例图片

14、Tab页

样例图片

15、步骤控件

样例图片 样例图片

16、有标题的面板

样例图片

17、圆形进度条

进度条支持圆环或扇形显示,支持百分比和数值显示

样例图片 样例图片

18、面包屑导航

样例图片

19、开关

样例图片

整体样例效果
1、效果1

样例图片

2、效果2

样例图片

3、效果3

样例图片

最后的话

最后,如果喜欢的话请前往 https://gitee.com/kwwwvagaa/net_winform_custom_control 点下stars

Product Compatible and additional computed target framework versions.
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.5.240416 191 4/16/2024
1.0.14 29,044 7/14/2020
1.0.13 1,350 6/16/2020
1.0.12 970 5/27/2020
1.0.11 3,735 12/16/2019
1.0.10 879 11/27/2019
1.0.9 684 11/8/2019
1.0.8 610 10/29/2019
1.0.7 629 10/9/2019
1.0.6 575 9/28/2019
1.0.5 605 9/19/2019
1.0.4 571 9/11/2019
1.0.3 572 8/31/2019
1.0.2 570 8/27/2019
1.0.1 579 8/19/2019
1.0.0 705 8/19/2019