We are using the RichTextBox control to create XAML documents, which are then stored in the database and displayed in a different application. On attempting to retrieve one particular saved document, we are getting the error 'MeasureOverride returned NaN' (see attachment).
Now, previous discussion on this error points to issues with dynamic sizing. The layout of the page the richtextbox is in has explict heights/widths and the control itself is constrained to the size it initializes at. The cell it is in has explict height/width as well.
However, the unique thing about this content is that it is about 200kb due to a particularly large image. The image is larger than the width/height the control is limited to. It loaded into the RichTextBox fine in order to export and save it, it just won't parse back in to it.
All other XAML docs saved/parsed by the RichTextBox load fine.
Obviously the simple answer is to redo the content with a smaller image, which is fine, but I wouldn't expect the control to crash the entire silverlight application due to this. Any ideas?
Thanks.
Now, previous discussion on this error points to issues with dynamic sizing. The layout of the page the richtextbox is in has explict heights/widths and the control itself is constrained to the size it initializes at. The cell it is in has explict height/width as well.
<
telerik:RadRichTextBox
x:Name
=
"TxtInfoContent"
Grid.Row
=
"4"
Grid.Column
=
"1"
Margin
=
"5"
AcceptsReturn
=
"True"
Height
=
"297"
Width
=
"455"
MaxHeight
=
"297"
MaxWidth
=
"455"
/>
However, the unique thing about this content is that it is about 200kb due to a particularly large image. The image is larger than the width/height the control is limited to. It loaded into the RichTextBox fine in order to export and save it, it just won't parse back in to it.
All other XAML docs saved/parsed by the RichTextBox load fine.
Obviously the simple answer is to redo the content with a smaller image, which is fine, but I wouldn't expect the control to crash the entire silverlight application due to this. Any ideas?
Thanks.