handycontrol的使用

Handycontrol的地址
https://handyorg.github.io/handycontrol/

需要新建项目后,导入到项目HandyControl-Nuget
image

引入资源文件
image

原始控件的Lable,可以加style标签,进行快速的修改handycontrol美化过的样式
image

gif动画,需要制定uri
image

image

原生的需要设置source
image

Label的标签
image
代码如下
image

当不能满足需求的时候,可以继续修改

image

该表原角度,附加属性,hc:BorderElement.CornerRadius="120"
image

其他的附加属性如下图

image

TextBlock文本块的使用,应用率非常高
image

image

Textbox文本框的样式使用
例如水印等
image

必须引入hc的命名空间
image

标题显示在左边
image

设置title的宽度
image

设置placeholder

image

必须输入提示符
image

image

Passwordbox密码框的样式使用
image

image

image

鼠标悬停和点击的效果
image

Border边框控件的使用

Style="{StaticResource BorderRegion}"

image

阴影效果
image

Border边框的使用
垂直分隔条

image

image

RadioButton单选按钮的样式

image

image

image

CheckBox的样式使用

时间选择控件的使用
image

image

image

Expander展开框的样式
image

Label添加右键菜单
image

image

``

posted @ 2022-09-06 11:55  忍者叮叮叮  阅读(2233)  评论(0编辑  收藏  举报