Looking for a way to databind to a paragraph of text in WPF, I first learnt about FlowDocuments, then about Run and how it doesn’t support databinding. Further consultation with Professor Google led me to Scott Hanselman’s The Weekly Source Code 40 where I found links telling me how to make binding work.

Best of all, I then found the What’s New in WPF Version 4 page from Microsoft, where I found this gem:

Run.Text is now a dependency property. The main advantage is that it now supports one-way bindings. It also supports other features of dependency properties, such as styling and templating.

Perfect.

Comments

blog comments powered by Disqus
Next Post
Fighting Spam with Mollom  05 Sep 2011
Prior Post
Easier property validation with dynamic in C# 4  27 Aug 2011
Related Posts
Browsers and WSL  31 Mar 2024
Factory methods and functions  05 Mar 2023
Using Constructors  27 Feb 2023
An Inconvenient API  18 Feb 2023
Method Archetypes  11 Sep 2022
A bash puzzle, solved  02 Jul 2022
A bash puzzle  25 Jun 2022
Improve your troubleshooting by aggregating errors  11 Jun 2022
Improve your troubleshooting by wrapping errors  28 May 2022
Keep your promises  14 May 2022
Archives
September 2011
2011