• 00
  • :
  • 00
  • :
  • 00
摘要: 效果: 阅读全文
posted @ 2020-02-07 22:06 Garson_Zhang 阅读(647) 评论(0) 推荐(0) 编辑
摘要: 主要是要设置HorizontalContentAlignment的值,而不是HorizontalAlignment <ListBox x:Name="xxx"> <ListBox.ItemContainerStyle> <Style TargetType="ListBoxItem"> <Setter 阅读全文
posted @ 2020-02-07 22:04 Garson_Zhang 阅读(464) 评论(0) 推荐(0) 编辑
摘要: 很多时候一些简单的使用绑定需要对绑定的源做处理就需要通过转换器,这样的代码写起来不好看 本文告诉大家通过一个简单的库可以实现在界面绑定的时候通过表达式不需要转换 首先通过 Nuget 安装 CalcBinding 库,注意 Nuget 的地址是 https://api.nuget.org/v3/in 阅读全文
posted @ 2020-02-07 09:59 Garson_Zhang 阅读(5009) 评论(0) 推荐(0) 编辑