Hi,
These lines of code create a new InlineUIContainer, with a button with the size 30X30 :
Telerik.Windows.Documents.Model.InlineUIContainer container = new Telerik.Windows.Documents.Model.InlineUIContainer();
CustomButton button = new CustomButton();
container.UiElement = button;
container.Width = 30;
container.Height = 30;
this.radRichTextBox.InsertInline(container);
radRichTextBox.UpdateEditorLayout();
But, let's say i made a mistake. Just after the UpdateEditorLayout, let's say i want to change again the width and Height :
Telerik.Windows.Documents.Model.InlineUIContainer container = new Telerik.Windows.Documents.Model.InlineUIContainer();
CustomButton button = new CustomButton();
container.UiElement = button;
container.Width = 30;
container.Height = 30;
this.radRichTextBox.InsertInline(container);
radRichTextBox.UpdateEditorLayout();
container.Width = 130;
container.Height = 130;
radRichTextBox.UpdateEditorLayout();
For some strange reason, in the editor, the size of my container is still 30X30... Once you setup the width and height, on creation, is there any way to change it later on?
Best regards,
These lines of code create a new InlineUIContainer, with a button with the size 30X30 :
Telerik.Windows.Documents.Model.InlineUIContainer container = new Telerik.Windows.Documents.Model.InlineUIContainer();
CustomButton button = new CustomButton();
container.UiElement = button;
container.Width = 30;
container.Height = 30;
this.radRichTextBox.InsertInline(container);
radRichTextBox.UpdateEditorLayout();
But, let's say i made a mistake. Just after the UpdateEditorLayout, let's say i want to change again the width and Height :
Telerik.Windows.Documents.Model.InlineUIContainer container = new Telerik.Windows.Documents.Model.InlineUIContainer();
CustomButton button = new CustomButton();
container.UiElement = button;
container.Width = 30;
container.Height = 30;
this.radRichTextBox.InsertInline(container);
radRichTextBox.UpdateEditorLayout();
container.Width = 130;
container.Height = 130;
radRichTextBox.UpdateEditorLayout();
For some strange reason, in the editor, the size of my container is still 30X30... Once you setup the width and height, on creation, is there any way to change it later on?
Best regards,