I have the following xaml,
<RichTextBox Name="RichTextBoxPostContent" Margin="0" Padding="8,8,8,0" IsReadOnly="True" Foreground="{x:Null}" Xaml="{Binding Path=PostContent}"/>
and PostContent (a string) has xaml stored as string and im not sure how to bind it to RichTextBox’s Xaml property, the following is the value of PostContent,
<Section xml:space="preserve" HasTrailingParagraphBreakOnPaste="False" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"><Paragraph FontSize="11" FontFamily="Portable User Interface" Foreground="#FF000000" FontWeight="Normal" FontStyle="Normal" FontStretch="Normal" TextAlignment="Left"><Run Text="aaa" /></Paragraph></Section>
Xamlisn’t a dependency property in Silverlight, so you can’t bind to it. You’ll have to write code that subscribes toINotifyPropertyChangedand doesrichTextBox.Xaml = obj.PostContentwhenever it changes.