RichTextBoxOverflow Control in SilverLight 5

One of the interesting control that was introduced with Silverlight 5  is the RichTextBoxOverflow control. This control will show up the portion of the RichTextbox which is overflown to it. A special property called OverflowContentTarget is added to the RichTextBox control to specify the Overflow control.

<RichTextBox OverflowContentTarget="{Binding MyOverflowControl}" />
<RichTextBoxOverflow x:Name="MyOverflowControl" 
                     OverflowContentTarget="{Binding MyOverflowControl2}"/>
<RichTextBoxOverflow x:Name="MyOverflowControl2" />

From the code, you will see the First RichTextBox overflows automatically to he overflow control and eventually both control behaves one homogeneous control. It allows you to select the portion overflown to other control and hence these control is actually an option to show up the portion that is not viewed in the original RichTextBox.

Abhishek Sur

Abhishek Sur is a Microsoft MVP since year 2011. He is an architect in the .NET platform. He has profound theoretical insight and years of hands on experience in different .NET products and languages. He leads the Microsoft User Group in Kolkata named KolkataGeeks, and regularly organizes events and seminars in various places for spreading .NET awareness. He is associated with the Microsoft Insider list on WPF and C#, and is in constant touch with product group teams. He blogs at His Book : Visual Studio 2012 and .NET 4.5 Expert Development Cookbook. Follow Abhishek at Twitter : @abhi2434