Welcome to WindowsClient.net | Sign in | Join

Rob Relyea - XAMLified

WPF, Silverlight and XAML

Syndication

Sponsors





  • advertise here
BindingFinder Updates

I posted significant updates to BindingFinder today. The goal of bindingFinder, as I discussed on Twitter, has evolved to provide compile type checking of Bindings in your XAML.

In order to do this as well as possible, BindingFinder relies on declarative hints about the typeContext of the binding. It will suggest that you add a DataType attribute to a DataTemplate. It will ask that you use d:DataContext="{d:DesignInstance foo:Customer}".

BindingFinder has not been extensively tested, so I'd love any feedback about problems that you hit. With Family.Show v3, BindingFinder found 140 bindings, and warns/errors for about 90. Once I've added a number of DataTemplate.DataType values, d:DataContext values, ValueConversionAttributes on ValueConverters, etc...and taught BindingFinder appropriate validation logic, it now is down to 23 warnings/errors. Several of those are due to bindings in Setter.Value, and a heavy use of a Binding.ElementName to find the root element of a user control.

Would love to hear feedback.

Published Sunday, August 29, 2010 7:52 PM by Rob_Relyea

Comments

# Windows Client Developer Roundup 039 for 8/30/2010@ Monday, August 30, 2010 12:44 AM

This is Windows Client Developer roundup #39. The Windows Client Developer Roundup aggregates information

# Dew Drop – August 30, 2010 | Alvin Ashcraft's Morning Dew@ Monday, August 30, 2010 7:35 AM

Pingback from  Dew Drop – August 30, 2010 | Alvin Ashcraft's Morning Dew

# Twitter Trackbacks for BindingFinder Updates - Rob Relyea - XAMLified [windowsclient.net] on Topsy.com@ Monday, August 30, 2010 9:15 AM

Pingback from  Twitter Trackbacks for                 BindingFinder Updates - Rob Relyea - XAMLified         [windowsclient.net]        on Topsy.com

# re: BindingFinder Updates@ Monday, August 30, 2010 3:24 PM

Great idea: I've been wanting this feature since WPF beta 2!

Leave a Comment

(required) 
(required) 
(optional)
(required) 
Page view counter