Silverlight 4 offers many new features for text editing including a new RichTextBox control. This new control includes clipboard support, text formatting and BiDi (Bidirectional) text support for input and output. The control also enables applications to show rich text and allows users to input formatted text (Bold, Italic, Underline, Font family, Font size and Font color), highlighting of text, and embedded elements such as Hyperlinks and Images.
Another useful feature is Silverlight's Drop Target API. This feature allows end users to drag & drop word documents directly in to the RichTextBox control. The control also can return Xaml allowing the format of rich text to easily be stored and retrieved.
In this Lab we'll learn how to build a text editor that supports rich text, clipboard copy & paste, and printing. We'll also learn how we can use the new BiDi support to customize the application's UI according to the client's culture. Finally, we will learn how to implement the new Drag & Drop API feature to easily load text or Word document contents into the RichTextBox control.
Estimated completion time for this lab is 75 minutes.