diff --git a/doc/source/handycontrol/attach/backgroundSwitchElement/index.md b/doc/source/handycontrol/attach/backgroundSwitchElement/index.md index ca12ad62..2fa310da 100644 --- a/doc/source/handycontrol/attach/backgroundSwitchElement/index.md +++ b/doc/source/handycontrol/attach/backgroundSwitchElement/index.md @@ -1,5 +1,42 @@ --- -title: 建设中 +title: BackgroundSwitchElement 可切换背景的元素 --- -建设中 \ No newline at end of file +# 准备工作 +添加`HandyControl`命名空间 +{% code %} +xmlns:hc="https://handyorg.github.io/handycontrol" +{% endcode %} + +## MouseHoverBackground `鼠标悬浮背景色` + +该附加属性常用于设置控件在鼠标悬浮时的背景色,在控件的样式或者模板中我们添加如下的触发器代码: + +{% code %} + + + +{% endcode %} + +随后我们就可以使用该属性了: + +{% code %} +<目标控件 controls:BackgroundSwitchElement.MouseHoverBackground ="Blue"/> +{% endcode %} + +## MouseDownBackground `鼠标按下背景色` + +该附加属性常用于设置控件在鼠标按下时的背景色,在控件的样式或者模板中我们添加如下的触发器代码: + +{% code %} + + + +{% endcode %} + +随后我们就可以使用该属性了: + +{% code %} +<目标控件 controls:BackgroundSwitchElement.MouseDownBackground ="Yellow"/> +{% endcode %} \ No newline at end of file diff --git a/doc/source/handycontrol/tnx/index.md b/doc/source/handycontrol/tnx/index.md index 671466f7..129c2af4 100644 --- a/doc/source/handycontrol/tnx/index.md +++ b/doc/source/handycontrol/tnx/index.md @@ -4,7 +4,7 @@ title: 鸣谢 # 感谢以下Coder提供代码贡献 -

ghost1372Dingping ZhangM0n7y5guanguanchuangyuguanguanchuangyu

+

ghost1372Dingping ZhangM0n7y5guanguanchuangyuyanchao891012noctwolf

# 感谢以下User提供使用建议