Exercise 2 –Text Services and Printing
In this exercise we'll learn how we can perform operations such as using the clipboard to copy and paste text into the rich text area and print our rich text content.
Task 1 – Clipboard Support
Silverlight 4 provides support for clipboard operations. In task we'll add functionality to support cut, copy and paste.
Task 2 – Printing from Silverlight
Silverlight 4 enables developers to use installed printers in order to print application content. In this exercise we will use this functionality and print the document content.
Task 3 – Highlight and XAML functionality
In this exercise we will build upon the controls added thus far. We will add highlight functionality to the RichTextBox. We will also add the ability to toggle between traditional rich text view and the Xaml markup generated for the contents of the RichTextBox.
Task 4 – Drag and Drop Support
New to Silverlight 4 is the Drop Target API. In this exercise we will demonstrate the use of this API by adding drag and drop functionality of Word documents and text files right into the RichTextBox.