Bind the text of RichTextBox from Xaml

user281947 picture user281947 · Mar 2, 2010 · Viewed 36.6k times · Source

How to Bind the text of RichTextArea from xaml

Answer

m1m1k picture m1m1k · Feb 1, 2013

They've got the easier answer here:

Silverlight 4 RichTextBox Bind Data using DataContext and it works like a charm.

<RichTextBox>
  <Paragraph>
    <Run Text="{Binding Path=LineFormatted}" />
  </Paragraph>
</RichTextBox>