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

DYnamically set width of InlineUiContainer

1 Answer 91 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 10 Jan 2011, 07:55 PM
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 

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 13 Jan 2011, 02:14 PM
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>>
Tags
RichTextBox
Asked by
Chris
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or