开发者

Are there any builtin IMultiValueConverts in WPF?

I'm writing a MultiBinding containing two bindings - each returning a bool. Using MultiBindings you need to specify an IMultiValueConverter. In my case this converter should take two bools and return the AND of them. This is really simple to write, but do I have to? This feels like the most bas开发者_如何学运维ic MultiValueConverter, and I don't want to write one if there is already an existing one in .NET.

So - is there? And if so - which built in IMultiValueConverters are there?


Nothing comes into my mind that will suit you directly. Reflector says there are only three open IMultiValueConverters there:

  • BorderGapMaskConverter
  • MenuScrollingVisibilityConverter
  • JournalEntryUnifiedViewConverter

This answer is useless. But maybe you'll find something helpful among Kent Boogaart's WPF converters library.

Cheers, Anvaka.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜