Course Catalog
Curriculum Guides
  .NET
  Java/J2EE
  XML
Downloads
Buy Courseware
Customization
News
Authors
Technical Library
FAQ
About Object Innovations
Opportunities
Contact Us
Home

 

 

   
www.objectinnovations.com
info@objectinnovations.com
877-558-7246 (toll free)  
781-466-8012  

4146.  Silverlight 2 Using C#

Rev. 2.0

 

Microsoft’s Silverlight is a new client-side Web technology that enables the implementation of visually stunning Web applications that depend only on a small, easy-to-install plug-in that works in browsers for both Windows and Macintosh. Silverlight 2 provides a cross-platform and cross-browser implementation of the .NET Framework. Silverlight applications can be implemented in .NET languages such as C# and Visual Basic as well as in JavaScript. This two-day course provides the C# programmer with a thorough foundation in Silverlight 2.

 

After introducing the Silverlight plug-in and SDK and the programming model for Silverlight, the course provides a thorough survey of Extensible Application Markup Language (XAML), which is also the foundation of Windows Presentation Framework (WPF). The course then shows how to use Silverlight to draw shapes, lines, text and images. The positioning and transformation of elements is covered. Event handling is covered. The course concludes with an introduction to Silverlight animation and the use of video and audio.

 

Numerous programming examples and exercises are provided. The student will receive a complete set of notes and all the programming examples.

 

LEARNING OBJECTIVES

 

·         Gain a practical knowledge of using Silverlight in Web applications

·         Understand the use of XAML with Silverlight, including the creation of dynamic content

·         Use Silverlight to draw shapes, lines, text and images

·         Implement input-driven Web applications using Silverlight

·         Use advanced Silverlight features such as animation and multimedia

 

Course Duration:  2 days

 

Prerequisites:  A basic understanding of Web application development using HTML and programming experience in .NET using C#. Some exposure to JavaScript would be helpful but is not essential.

 

1.      Introduction to Silverlight

The Silverlight Plug-in

The Silverlight SDK

Using the Silverlight Control

 

2.      Programming Silverlight

JavaScript API for Silverlight

Managed API for Silverlight

Visual Studio 2008 and Silverlight

Interactive Web Applications Using C#

 

3.      Using XAML

Windows Presentation Framework (WPF)

Extensible Application Markup Language (XAML)

Canvas

Elements and Attributes

Property Elements

Type Converters

Content Property

Collections

Attached Properties

XAML and C#

XamlReader

 

4.      Shapes and Lines

Rectangles

Ellipses

Polygons

Lines and Polylines

Curves

Paths

Geometries

Strokes

 

5.      Text and Fonts

TextBlock

Fonts

Run

LineBreak

 

6.      Brushes and Images

Color and Opacity

SolidColorBrush

LinearGradientBrush

RadialGradientBrush

Image

ImageBrush

 

7.      Layout and Transforms

Sizing Elements

StackPanel

Grid

Positioning Elements

Z-Order

Clipping

Translate Transform

Rotate Transform

Scale Transform

Skew Transform

Combining Transforms

 

8.      Handling Events

Event Handlers

Dynamic Event Handlers

Mouse Events

Rubber Band Drawing

Drag and Drop

Event Bubbling

 

9.      Animation and Media

Animation using Background Worker

Silverlight Animation

Video and Audio

Resources

 

Appendix A. Learning Resources

 

System Requirements

 

·         Microsoft Windows with Internet Explorer

·         Visual Studio 2008

·         Silverlight Tools for Visual Studio

 

The course has been tested on Windows XP with Service Pack 2 and Internet Explorer 7.

 

A good hardware profile for this course would have a Pentium 2-GHz or equivalent CPU, 512 MB of RAM, and at least 4 GB of free disk

 

See the appropriate course Setup Guide for details.