Check out these 5 hands on labs that demonstrate some of the newest features in Silverlight. Explore multi touch, drag and drop, numerous out of browser features, learn to interact with the webcam, create a rich text notepad using the RichTextBox control, printing your content, and more!
Silverlight RichTextBox Lab
This hands-on lab walks through the creation of a rich text notepad application (this application is the same one that was demonstrated at PDC 09, with several new enhancements). The RichTextBox 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 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 and 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 and Drop API feature to easily load text or Word document contents into the RichTextBox control.
Multi Touch in Silverlight Lab
This hands-on lab walks through the creation of a multi-touch image browser application. First, you will implement drop target functionality to load images and create a context menu. Then you will handle multi-touch events allowing you to arrange and rotate images.
Silverlight Validation, Binding, DataForm and DataGrid Lab
This is a two-part hands-on lab that walks through many features including data validation, IDataErrorInfo and more. First you will explore the new functionality in the DataGrid including Grouping support. Then you will explore Binding to Dependency Properties, Fallback Values and String formatting.
Out of Browser with COM Interop Lab
In this Lab we'll build an out-of-browser application, see how to elevate permissions and learn how to manipulate COM objects to control applications such as Outlook and Excel. We'll add code to send records in a DataGrid control into Excel and even sync changes made in Excel with the DataGrid. In addition, we'll also learn how to load data from Silverlight into an Outlook email message, change the chrome of an out-of-browser application, sign a XAP to make it trusted and perform a silent installation of a XAP file.
Webcam in Silverlight Lab
This is a two-part hands-on lab that walks the creation of an application that takes advantage of device integration. First you will learn how to access a WebCam, then you will capture, and print a snapshot from the WebCam.