20

Where can one find a list of default converters for WPF?


After looking into Google, I couldn't find any detailed list of what is actually included in WPF, particularly the MSDN docs. Only found:

Community
  • 1
  • 1
Damascus
  • 6,553
  • 5
  • 39
  • 53

1 Answers1

29

In System.Windows.Control (PresentationFramework.dll)

  • AlternationConverter
  • BooleanToVisibilityConverter
  • BorderGapMaskConverter
  • DataGridLengthConverter
  • MenuScrollingVisibilityConverter

In System.Windows.Documents

  • ZoomPercentageConverter
  • JournalEntryListConverter

In Microsoft.Windows.Themes

  • ProgressBarBrushConverter
  • ProgressBarHighlightConverter

In System.Windows.Navigation

  • JournalEntryUnifiedViewConverter
Sisyphe
  • 4,626
  • 1
  • 25
  • 39
  • 1
    Thanks, but do you have a source link? I just would like to be sure that there is no other converter hanging around without being caught =) – Damascus Oct 19 '12 at 15:29
  • 6
    Actually I just used Reflector and checked for IValueConverter implementations ;) That's all I found. I'm currently checking again to see if I didnt forget anyone ;) – Sisyphe Oct 19 '12 at 15:30
  • Edit : ok I triple checked, that's everything present in the .NET 4.0 framework. – Sisyphe Oct 19 '12 at 15:44
  • Nice stuff! Just out of curiosity, do you know if some converters were added to .NET 4.5 ? – Damascus Oct 19 '12 at 17:47
  • Let me check. Please consider flaggin as answer if you are satisfied with the list :) - Edit : NOthing new in .NET4.5 ! – Sisyphe Oct 19 '12 at 17:56
  • Awesome answer! Thank you! Will keep that as a bookmark. So overall we can say that the included converters are... not that useful. A basic string to double convertor would've been obvious imho – Damascus Oct 19 '12 at 21:07
  • Many thanks. Goodness only knows why Microsoft don't feel this is something that deserves to be documented more clearly! – Richard J Foster Jun 22 '14 at 21:39
  • @Damascus: _"A basic string to double convertor would've been obvious"_ -- since WPF already automatically handles bindings between `string` and `double`, how would a converter help? – Peter Duniho Jun 22 '15 at 22:18
  • A basic cast float to integer would have been nice as well – Epirocks Sep 13 '17 at 14:00