Hi
for storing RadDocument content in DB we use the Xaml format and get the Xaml
using the XamlDataProvider, binding its Xaml dependendency property
to a property of some custom class.
This works very well and reliably in virtually all situations and with
all kinds if RTF content.
Now I have a situation where I append a new paragraph to the richtextbox's
Document using
In this case both XamlDataProvider.Xaml doesn't change und doesn't update my bound
property and also the richtextbox's document isn't updated visually: the new paragraph is not displayed.
However when i check the xaml of richtextbox.Document using
the new Paragraph is there.
So there seems to be a discrepancy between the
"logical" content of the document and the one actually rendered.
How can that be?
Is my way of appending the paragraph not the recommend one?
Do i need some extra code for updating the document (kind of refresh or so?)?
Thanks
Chris
for storing RadDocument content in DB we use the Xaml format and get the Xaml
using the XamlDataProvider, binding its Xaml dependendency property
to a property of some custom class.
This works very well and reliably in virtually all situations and with
all kinds if RTF content.
Now I have a situation where I append a new paragraph to the richtextbox's
Document using
currentParagraph.Parent.Children.AddAfter(currentParagraph, newPargraph);
In this case both XamlDataProvider.Xaml doesn't change und doesn't update my bound
property and also the richtextbox's document isn't updated visually: the new paragraph is not displayed.
However when i check the xaml of richtextbox.Document using
xaml =
new
XamlFormatProvider().Export(richtextbox.Document);
the new Paragraph is there.
So there seems to be a discrepancy between the
"logical" content of the document and the one actually rendered.
How can that be?
Is my way of appending the paragraph not the recommend one?
Do i need some extra code for updating the document (kind of refresh or so?)?
Thanks
Chris