How to wrap text around an image

2 posts, 0 answers
  1. Bill
    Bill avatar
    1 posts
    Member since:
    Jan 2011

    Posted 03 Jul 2011 Link to this post

    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.
  2. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 15 Aug 2011 Link to this post

    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 >>

Back to Top