Fix a bug where the binding would try to evaluate prematurely when used inside a data template. This approach was used: http://www.thomaslevesque.com/2009/08/23/wpf-markup-extensions-and-templates/