27
Silverlight Group E1 University of Sicence Teacher Lam Quang Vu Nguyen Huy Khanh

Microsoft silverlight

Embed Size (px)

Citation preview

Page 1: Microsoft silverlight

SilverlightGroup E1

University of SicenceTeacher

Lam Quang VuNguyen Huy Khanh

Page 2: Microsoft silverlight

• Introduce Silverlight• Installed Software• XAML• Animation , Sound, Media• Demo

Page 3: Microsoft silverlight

Introduce Silverlight

What is the Silverlight ?

-Silverlight is a cross platform, cross browser .NET plug-in that enables designers and developers to build rich media experiences and RIAs (Rich Internet Applications ) for browsers.  -The preview builds we released this week currently support Firefox, Safari and IE browsers on both the Mac and Windows.

Page 4: Microsoft silverlight

Silverlight architecture

Page 5: Microsoft silverlight

Install Silverlight

Page 6: Microsoft silverlight

Demo create Application Silverlight

Page 7: Microsoft silverlight

•XAML Basics•Properties and Events •Resources•Layout with the StackPanel•The Grid•Coordinate- base Layout with the Canvas•Navigation

XAML Xaml ( Extensible Application Markup Language) -Markup language used to instantiate .Net objects-Windows Presentation Foundation (WPF).-XAML plays a role that’s a lot like HTML

Page 8: Microsoft silverlight

XAML namespace+ xmlns="http://schemas.microsoft.com/client/2007/

+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">The code-behind Class

+Page.xaml +Page.xaml.cs

XAML basics

Page 9: Microsoft silverlight

XAML Properties and Events

Page 10: Microsoft silverlight

XAML Resource

Using resource : Static Resource

Page 11: Microsoft silverlight

XAML Layout

Page 12: Microsoft silverlight

XAML Layout

StackPanel

The Gird

Page 13: Microsoft silverlight

XAML

Page 14: Microsoft silverlight

The Canvas

Page 15: Microsoft silverlight

XAML Navigations

Shapes and GeometriesBrushes and Tranforms

Page 16: Microsoft silverlight

Animation

Page 17: Microsoft silverlight

Animation

Animation is thought of as series of framesRules of Animation :

+Times-based +Animation act on properties+Every data type requires a different animation class

Page 18: Microsoft silverlight

Animation

Classes : +The Animation Class+The Storyboard Class

Page 19: Microsoft silverlight

Animation Class

Linear interpolation :+Property value varies smoothly and continuously over the

duration of the Animation+3 Classes

1.DoubleAnimation2.PointAnimation3.ColorAnimation

Key frame animation+Values can jump abruptly form value to annther+Classes : ColorAnimationUsingKeyFrames , Double-

AnimationUsingKeyFrames ,PoinAnimationUsingKeyFrame , ObjectAnimationKeyFrames.

Page 20: Microsoft silverlight

Storyboard Class

•Manges the timeline of your animation

•Use storyboard Class to group multiple animations , ability to control the playback , pausing , stopping , changing its postions.

•Point to a specific property and specific elements using TargetProperty and TargetName proprerty .

Page 21: Microsoft silverlight

Starting an Animation with an Even Trigger

Page 22: Microsoft silverlight

Starting an Animation with code

Page 23: Microsoft silverlight

Configuring Animation Properties

1. From2. To3. By4. Duration

Animation Lifetime

+RepeatBehavior

Group Animations

Page 24: Microsoft silverlight

•Controlling Playback•Animation Types Revisited +Animation Transforms +Animation Brushes +Key Frame Animation

Extra Animation

Page 25: Microsoft silverlight

Sound ,Video

Page 26: Microsoft silverlight

References

Websites: http://silverlight.net

http://weblogs.asp.net/scottgu/archive/2007/05/07/silverlight.aspxEbooks

Pro Silverlight in C#

Page 27: Microsoft silverlight

Demo