DYnamically set width of InlineUiContainer

2 posts, 0 answers
  1. Chris
    Chris avatar
    12 posts
    Member since:
    Sep 2012

    Posted 10 Jan 2011 Link to this post

    I have a requirement to insert a custom control that will toggle between an image and some text that is associated with the image. The problem is that I will have to dynamically set the width of the inlineuicontainer and I am not seeing a way to do this. Is this possible. We at first thought we could inherit from the InlineUiContainer class but since it is sealed this is not possible. Any suggestions would be very helpful.


    Thanks,

    Chris 
  2. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 13 Jan 2011 Link to this post

    Hi Chris,

    InlineUIContainer's Height and Width can be changed dynamically. However, the changes are visible when the layout of the RadRichTextBox is updated. The layout is updated automatically when you scroll RadRichTextBox, resize the window, start typing in the document, etc. You can also force the update as follows:
    radRichTextBox.UpdateEditorLayout();
    As for your other questions, please refer to the other forum thread in which you have posted this issue.

    Best wishes,
    Iva
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Back to Top