Contents tagged with Converters
-
Getting rid of heavy Multivalue Converters : My Encounter with Win Form style WPF apps 2
I recently came across the situation where I had to refactor the WPF code written in Win Forms Style; Code was having a lot of MultiValueConverters used for building the DataContext / ItemSources for Controls/ ListVies/ DataGrids etc. Following is the example of one of the converters I am talking about:
-
Using Triggers in place of converters: My Encounter with WinForm style WPF apps 1
I am working on some refactoring kind of tasks and thought to share some of my findings with you all. In one of the application I am working, lot of converters were used for determining the value of a property based on various conditions (values of other properties); It’s not required to use these converters at all and these can easily be replaced with Triggers. I don’t have any statistics in favor of triggers at present but some problems I see in using converters are –