August 30, 2014

Expose WPF control to view model III

Although accessing WPF controls from view models is a big no-no in unit-tested view models, it's often a necessary evil when working with poorly designed controls. Moreover, in many WPF programming styles, exposing selected controls to view models is not only allowed but heartily encouraged, because view models are often a favorable replacement for messy code-behind logic. I will now show you how to expose WPF controls to view models cleanly and easily.

August 15, 2014

LazyControl in JungleControls

LazyControl from JungleControls library is a clever WPF control that only materializes its contents when it becomes visible to the user. It is useful in large, complex layouts where traditional virtualizing panels won't do.