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