Does WPF have a set of default binding converters available?

依然范特西╮ 提交于 2019-12-25 07:58:57

问题


When creating WPF user controls I often find myself creating small converter classes when binding values.

Often you need to do similar conversions, and it made me wonder whether I might be missing some existing available implementations.

  • Does the .NET library contain any implementations of IValueConverter or IMultiValueConverter?
  • Has there been any attempt made to create a library of reusable value converters?

回答1:


There are not many built-in, public are:

  • BooleanToVisibilityConverter
  • AlternationConverter
  • ZoomPercentageConverter
  • JournalEntryListConverter

May have missed some...



来源:https://stackoverflow.com/questions/9560329/does-wpf-have-a-set-of-default-binding-converters-available

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!