WPF Tips and Tricks Part 1


So I was at the local Atlanta Silverlight Meetup last night and we got on the topic what you get and dont get from most training programs for WPF and Silverlight.  While there are some out there that are very good about providing the full in-depth knowledge of WPF programming there are sometimes items that are very important to know but get left out.  I refer to these as Tips and Tricks.  I talked about some of them and found out most of them had not run into these scenario’s and understanding of what WPF does.  I have found some of these out on the web already but I wanted to do a blog series of the Tips and Tricks I find to be very good to understand.

The first tip I end up giving when talking to people who are new to WPF is about a situation with Converters.  I find that when Converters are first seen they are loved and then used everywhere.  Well a Converter is not as performant as a Trigger.  A lot of the time I see converters created that could very easilly be represented as a trigger and by swapping out all of the converters with the triggers we saw a good performance increase.  So my first tip is “Try to not use converters if you dont have to, see if you can find a way to use a trigger to achieve the same result”.

Part 2 coming soon!

Comments are closed.