add doc
This commit is contained in:
1 parent
28c464a8e2
commit
0eb9bed399
3 files changed
+67
-12
No files matched your search
@@ -1,5 +1,44 @@
|
||||
---
|
||||
title: 建设中
|
||||
title: Button 按钮
|
||||
---
|
||||
|
||||
建设中
|
||||
# ButtonBaseStyle : ButtonBaseBaseStyle
|
||||
|
||||
默认样式,不推荐直接使用,应该始终被其它样式以BasedOn的方式使用。
|
||||
|
||||
{% note info %}
|
||||
所有继承此样式的按钮都可以使用`IconElement`中定义的附加属性来控制按钮中几何图形的属性。
|
||||
{% endnote %}
|
||||
|
||||
{% note info %}
|
||||
所有继承此样式的按钮都可以使用`BorderElement.CornerRadius`附加属性来控制按钮的圆角大小。
|
||||
{% endnote %}
|
||||
|
||||
# ButtonPrimary : ButtonBaseStyle
|
||||
|
||||
主要按钮
|
||||
|
||||
# ButtonSuccess : ButtonBaseStyle
|
||||
|
||||
成功按钮
|
||||
|
||||
# ButtonInfo : ButtonBaseStyle
|
||||
|
||||
信息按钮
|
||||
|
||||
# ButtonWarning : ButtonBaseStyle
|
||||
|
||||
警告按钮
|
||||
|
||||
# ButtonDanger : ButtonBaseStyle
|
||||
|
||||
危险操作按钮
|
||||
|
||||
# ButtonIcon : ButtonBaseStyle
|
||||
|
||||
如果只想显示几何图形按钮,则推荐使用此样式。
|
||||
|
||||
# ButtonCustom
|
||||
|
||||
如果想完全自定义按钮的内容,则推荐使用此样式。
|
||||
|
||||
@@ -2,4 +2,20 @@
|
||||
title: 原生控件
|
||||
---
|
||||
|
||||
原生控件是指WPF框架自带的控件,除此之外,通过附加属性实现简单的功能扩展。
|
||||
原生控件是指WPF框架自带的控件,除此之外,通过附加属性实现简单的功能扩展。
|
||||
|
||||
{% note warning %}
|
||||
HandyControl中,几乎所有的原生控件都有默认实现的基样式(即定义样式的时候,没有显示给定Key值)。
|
||||
{% endnote %}
|
||||
|
||||
{% note warning %}
|
||||
基样式一般带有“Base”字样,不推荐用户直接在视图层中使用,合适的使用场景是资源文件。
|
||||
{% endnote %}
|
||||
|
||||
# FAQ
|
||||
|
||||
{% note info no-icon %}
|
||||
我该怎么覆盖样式的默认实现呢?没有Key可以给我BasedOn啊?
|
||||
{% endnote %}
|
||||
|
||||
可以使用这种语法:`BasedOn="{StaticResource {x:Type Button}}"`来覆盖`Button`的默认样式。
|
||||
Reference in new issue
Block a user