Merge pull request #128 from guanguanchuangyu/master
add the warning infomation of comboBox
This commit is contained in:
3 files changed
+7
-1
No files matched your search
@@ -29,7 +29,13 @@ title: ComboBox 组合框
|
|||||||
{% note warning %}
|
{% note warning %}
|
||||||
标题在左时,为了多个输入框左侧对齐,需要设置标题宽度,标题宽度无需逐个设置,可在外部容器上统一设置。
|
标题在左时,为了多个输入框左侧对齐,需要设置标题宽度,标题宽度无需逐个设置,可在外部容器上统一设置。
|
||||||
{% endnote %}
|
{% endnote %}
|
||||||
|
{% note waining %}
|
||||||
|
常见问题:
|
||||||
|
Combobox的字体比原有默认字体大,同时设定标题在左,标题因字体过大显示不全
|
||||||
|

|
||||||
|
解决方案:
|
||||||
|
在该Combobox中添加附加属性`hc:InfoElement.ContentHeight`,默认值为30,默认字体号为12,变更后可根据新的字体大小设定该附加属性的数值,如上图,字体大小为18,则设定`hc:InfoElement.ContentHeight`为38,结果如下:
|
||||||
|
{% endnote %}
|
||||||
- 标题在上,带有水印
|
- 标题在上,带有水印
|
||||||
`<ComboBox ItemsSource="{Binding DataList}" hc:InfoElement.Placeholder="请输入内容" hc:InfoElement.Title="此项必填" Style="{StaticResource ComboBoxExtend}"/>`
|
`<ComboBox ItemsSource="{Binding DataList}" hc:InfoElement.Placeholder="请输入内容" hc:InfoElement.Title="此项必填" Style="{StaticResource ComboBoxExtend}"/>`
|
||||||

|

|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
Reference in new issue
Block a user