update Converters
This commit is contained in:
1 parent
ab2993a793
commit
2b4fa8a851
1 file changed
+8
@@ -50,6 +50,14 @@ title: 转换器
|
||||
|
||||
该转换器需要提供一个字符串作为参数,该字符串的一般形式为:`[0/1],[0/1],[0/1],[0/1]`,4个以逗号分隔的值分别对应`CornerRadius`的`Left`、`Top`,`Right`,`Bottom`属性,当值为1则返回对应属性的值,否则返回0。
|
||||
|
||||
# Double2GridLengthConverter
|
||||
|
||||
该转换器会将`double`值转换为`GridLength`。
|
||||
|
||||
# DoubleMinConverter(内部使用)
|
||||
|
||||
可以向该转换器提供一个字符串作为最小值(如果不提供,则最小值默认为0),当传入的值小于最小值时,返回最小值,否则返回传入的值。
|
||||
|
||||
# Int2StrConverter
|
||||
|
||||
该转换器需要提供一个字符串作为参数,该字符串的一般形式为:`[字符串0];[字符串1];...[字符串n]`,转换器会将一个整型的值作为索引,来获取指定位置的字符串并返回。
|
||||
|
||||
Reference in new issue
Block a user