I'm having some trouble adding an image to a RadDocument and am obviously doing something wrong.
When I get to this:
popupWindow.radRichTextBox.Document.UpdateLayout() //error on this line
I get this error: Unable to cast object of type 'Telerik.Windows.Documents.Model.ImageInline' to type 'Telerik.Windows.Documents.Model.Block'.
Any advice on this? Hierarchy is correct and I followed samples in the documentation...
I HAVE TO use the ImageInline as later on I get an ImageInline object derived from the contents of a canvas control which needs to also go into the RadDocument as an image. I assume solving the former case will help later with the latter...