update doc

This commit is contained in:
NaBian committed 2019-11-04 22:24:41 +08:00
1 parent 70f69763fa
commit 535ab25de1
2 files changed
+15 -38

No files matched your search

@@ -1,10 +1,10 @@
---
title: InfoElement信息元素
title: InfoElement 信息元素
---
{% note info no-icon %}
继承至[TitleElement]( https://handyorg.github.io/handycontrol/attach/titleElement/ )
继承自 [TitleElement]( https://handyorg.github.io/handycontrol/attach/titleElement/ )
{% endnote%}
@@ -21,24 +21,18 @@ title: InfoElement信息元素
# 使用案例
对应`xaml`引入`handycontrol`对应的命名空间
## Placeholder 占位符
```xml
xmlns:hc="https://handyorg.github.io/handycontrol"
<StackPanel Width="200" VerticalAlignment="Center">
<hc:SearchBar/>
<hc:SearchBar hc:InfoElement.Placeholder="请输入查询条件" Style="{StaticResource SearchBarExtend}" Margin="0,16,0,0"/>
</StackPanel>
```
## `Placeholder` 占位符
```xml
<hc:SearchBar Style="{StaticResource SearchBarExtend}" Margin="10,10"/>
<hc:SearchBar hc:InfoElement.Placeholder="请输入查询条件" Style="{StaticResource SearchBarExtend}" Margin="10,10"/>
```
效果:
![InfoElement.Placeholder](https://raw.githubusercontent.com/HandyOrg/HandyOrgResource/master/HandyControl/Doc/attach/InfoElement.Placeholder.png)
## `Necessary` 是否必填
## Necessary 是否必填
```xml
<hc:SearchBar hc:InfoElement.Placeholder="请输入查询条件"
@@ -47,13 +41,11 @@ xmlns:hc="https://handyorg.github.io/handycontrol"
Style="{StaticResource SearchBarExtend}"/>
```
其中`hc:InfoElement.Title="查询条件" `为继承至父类
效果:
其中`hc:InfoElement.Title="查询条件" `继承自父类
![InfoElement.Necssary](https://raw.githubusercontent.com/HandyOrg/HandyOrgResource/master/HandyControl/Doc/attach/InfoElement.Necssary.png)
## `Symbol` 标记信息
## Symbol 标记信息
```xml
<hc:SearchBar hc:InfoElement.Placeholder="请输入内容"
@@ -62,11 +54,9 @@ xmlns:hc="https://handyorg.github.io/handycontrol"
hc:InfoElement.Symbol="x"/>
```
效果:
![InfoElement.Symbol](https://raw.githubusercontent.com/HandyOrg/HandyOrgResource/master/HandyControl/Doc/attach/InfoElement.Symbol.png)
## `ContentHeight` 内容高度
## ContentHeight 内容高度
```xml
<hc:SearchBar hc:InfoElement.Placeholder="请输入查询条件"
@@ -76,6 +66,4 @@ xmlns:hc="https://handyorg.github.io/handycontrol"
Style="{StaticResource SearchBarExtend}"/>
```
效果:
![InfoElement.ContentHeight](https://raw.githubusercontent.com/HandyOrg/HandyOrgResource/master/HandyControl/Doc/attach/InfoElement.ContentHeight.png)
@@ -1,5 +1,5 @@
---
title: TitleElement标题元素
title: TitleElement 标题元素
---
# 属性
@@ -15,23 +15,16 @@ title: TitleElement标题元素
# 使用案例
对应`xaml`引入`handycontrol`对应的命名空间
```xml
xmlns:hc="https://handyorg.github.io/handycontrol"
```
## `Title` 标题信息
## Title 标题信息
```xml
<hc:TextBox hc:TitleElement.Title="标题信息"
Margin="10,10"></hc:TextBox>
```
效果:
![TitleElement.Title](https://raw.githubusercontent.com/HandyOrg/HandyOrgResource/master/HandyControl/Doc/attach/TitleElement.Title.png)
## `TitleAlignment` 标题对齐方式
## TitleAlignment 标题对齐方式
```xml
<!--标题居于顶侧-->
@@ -44,11 +37,9 @@ xmlns:hc="https://handyorg.github.io/handycontrol"
Margin="10,10"></hc:TextBox>
```
效果:
![TitleElement.TitleAlignment](https://raw.githubusercontent.com/HandyOrg/HandyOrgResource/master/HandyControl/Doc/attach/TitleElement.TitleAlignment.png)
## `TitleWidth` 标题宽度
## TitleWidth 标题宽度
```xml
<!--设定TitleWidth为Auto-->
@@ -63,6 +54,4 @@ xmlns:hc="https://handyorg.github.io/handycontrol"
Margin="10,10"></hc:TextBox>
```
效果:
![TitleElement.TitleWidth](https://raw.githubusercontent.com/HandyOrg/HandyOrgResource/master/HandyControl/Doc/attach/TitleElement.TitleWidth.png)