Skip navigation

Not too long ago, Paul Stovell, a fellow WPF apprentice asked if there was a way to get a list of all bindings in a control on the WPF forums. After a little bit of diving into the documentation, I found the LogicalTreeHelper, a helper class that you can use to walk the logical tree of a control. (Combining that with reflection allowed him to get the bindings). Paul wanted to use this functionality for his implementation of IErrorProvider for WPF. Today I stumbled across the ValidationRule class that provides similar functionality to what IErrorProvider did. Bea Costa, WPF DataBinding guru extraordinaire, has a blog entry (look under the March 2006 archives) in which she shows its usage.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: