摘要: WPF可以使用MultiBinding进行多值绑定,使用IMultiValueConverter进行多值转换 例: (1)转换器 (2)绑定 (3)button click事件 (4)效果 lable显示 str1,str2和str3相加后的字符串 阅读全文
posted @ 2019-07-24 19:18 翻白眼的哈士奇 阅读(6785) 评论(0) 推荐(0) 编辑
摘要: 1.作用:可以将源数据和目标数据之间进行特定的转化, 2.定义转换器,需要继承接口IValueConverter public ValueConversionAttribute(Type sourceType, Type targetType):指定源属性类型和目标属性类型 Convert:会进行源 阅读全文
posted @ 2019-07-24 16:46 翻白眼的哈士奇 阅读(20294) 评论(0) 推荐(1) 编辑