default.aspx
Silverlight .NET Controls and CMS
Home
controls.aspx
Silverlight Controls
Controls
controls/rich_textbox.aspx
Silverlight Rich TextBox
Rich TextBox
Using Multiple Instances Together

Using Multiple Instances Together

You can use multiple instances of the RichTextBox on the same Silverlight page if required. When you do this you can easily pass data from one instance to another, both programatically and also using the internal, shared clipboard.

Imagine a scenario where you have two RichTextBox instances, one is fully editable and the other is read-only. You want to be able to apply changes to the read-only instance as they occur in the editable instance. For this you can use the ContentChanged event which is triggered when a change is made to the content of a RichTextBox, in the event handler you would then set the RichText property of the read-only instance to the RichText property of the editable instance.

Your Comments and Questions Answered

 You are not logged in. You need to login to post new messages, if you do not have a login you can register for free!

dan said:

Hi,

This should be possible, we will take a look at this as it makes sense to have this as an option when insertint content. Thanks!

08/12/2008 10:33
 
edobrenko said:

Having 2 instances of reichtext box is very useful and it's actually what I need, But Is that possible in v4.9 to programicaly control scrolling of that read-only text box? For exampe, I have 2 instances like you've mentioned both has some text inside, in editable instance I typed some more text, and ContentChanged triggers my text over to the second instance, so now I need second rich text box to aoutoscroll it's content so my newly inserted text is up and visible.
Thanks.

08/11/2008 12:43
 
This page is 14.17KB and was generated by the SilverPages CMS in 0.078 seconds. Total impressions: 318.