This is a migrated thread and some comments may be shown as answers.

How to wrap text around an image

1 Answer 72 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bill
Top achievements
Rank 1
Bill asked on 03 Jul 2011, 04:17 PM
Hi,
How can I make text flow around an image?  Not necessarily all four sides (Image in center of text).  But, say, Image is in on of the corners and the text flows normally around it, something like you can do in MS Word.  I initially thought this should be pretty simple to do.  But it turns out that it is not.  I can't find a control that can do it.  If I have a 200 x 200 image on the left, I want the text to start at the right top of the image, stay to the right until the text reaches to the bottom of the image, then continue text normally at the left edge of the container under the image.  I have done this in regular ASP.NET apps with CSS.  But can't find a way to implement the same in Silverlight.  If it is possible, could you please give me some sample code?  Thanks.

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 15 Aug 2011, 09:40 AM
Hello Bill,

In case you are looking for a document-editor that is able to create and preview rich text documents with floating images in Silverlight, RadRichTextBox may be just what you need.
This feature was introduced in the latest release - Q2 2011 (2011.2 712). You can test how it works in our online demo Telerik Editor.
You can use RadRichTextBox as a viewer only, too (by setting its IsReadOnly property to true). However, you should make sure that the performance of the control is satisfactory for your application, especially if you are going to use it with larger documents.

Greetings,
Iva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
General Discussions
Asked by
Bill
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or