Silverlight Group E1 University of Sicence Teacher Lam Quang Vu Nguyen Huy Khanh
Animation , Sound, Media
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.
Demo create Application Silverlight
Properties and Events
Layout with the StackPanel
Coordinate- base Layout with the Canvas
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
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
XAML Properties and Events
XAML Resource Using resource : Static Resource
XAML Layout StackPanel The Gird
XAML Navigations Shapes and Geometries Brushes and Tranforms
Animation Animation is thought of as series of frames Rules of Animation : +Times-based +Animation act on properties +Every data type requires a different animation class
Animation Classes : +The Animation Class +The Storyboard Class
Animation Class Linear interpolation : +Property value varies smoothly and continuously over the duration of the Animation +3 Classes 1.DoubleAnimation 2.PointAnimation 3.ColorAnimation Key frame animation +Values can jump abruptly form value to annther +Classes : ColorAnimationUsingKeyFrames , Double-AnimationUsingKeyFrames ,PoinAnimationUsingKeyFrame , ObjectAnimationKeyFrames.
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 .
Starting an Animation with an Even Trigger
Starting an Animation with code
Configuring Animation Properties
Animation Lifetime +RepeatBehavior Group Animations
Animation Types Revisited
+Key Frame Animation
References Websites: http://silverlight.net http://weblogs.asp.net/scottgu/archive/2007/05/07/silverlight.aspx Ebooks Pro Silverlight in C#