2Mar/090
UpdateLayout in WPF
Sometimes when you're working on a UI in WPF, the actions of one method won't actually happen before the next method begins running on them. This can cause weird results if your second method depends on the first method's changes being done rendering.
Use the UpdateLayout() method to make sure your changes are actually done before you begin operating against them. It will make life so much better.