Welcome to WindowsClient.net | My Blog | Sign in | Join

Faisal's Blog

May 2008 - Posts

Animation in-depth with Silverlight 2.0 Beta – Part Four

In this example I’ll show you how animations can be performed using a VideoBrush. This is one of the examples that attracts the users attention by completing the animation at the right time. The video will be clipped and rotated during the animation.

                                                                                                                                              Read More 

kick it on DotNetKicks.com
Posted: May 30 2008, 04:47 PM by ilves | with 1 comment(s)
Filed under:
Animation in-depth with Silverlight 2.0 Beta – Part Three

Here's an example of an animation where clicking a button will increase the size of the font of the button. First I've declared two constants of type double, one for the font size of the button at the initialization time, which is declared as initFontSize; and the other one at runtime when the button is clicked. When clicked, the event handler creates a DispatcherTimer that generates Tick events every tenth of a second. The TimerOnTick method here increases the FontSize by two units every tenth of a second until the size reaches 48 units, at which point the button is restored to its original size and the timer is stopped.

                                                                                                                                                 Read More

kick it on DotNetKicks.com
Posted: May 26 2008, 05:10 PM by ilves | with 1 comment(s)
Filed under:
Animation in-depth with Silverlight 2.0 Beta – Part Two

I mentioned in the first article that a Storyboard controls animations with a timeline, and provides object and property targeting information for its child animations. This is the cornerstone of Silverlight animation. A Storyboard is a set of one or more animations. It is comparable to a <TransformGroup> element. Storyboard does exactly the same things for animations that <TransformGourp> does for transformations. Storyboard has a Children property that enables you to access all the animation objects within a given Storyboard. Animations do not add or remove elements, they temporarily alter the property values of existing elements. If you create a new Storyboard and add a new rectangle to the canvas, that rectangle will be available to all Storyboards, not just the current one. The rectangle was added to the scene’s base canvas and is not specific to the active Storyboard.                                                          

                                                                                                                                               Read More

kick it on DotNetKicks.com
Posted: May 16 2008, 02:13 PM by ilves | with 1 comment(s)
Filed under:
Animation in-depth with Silverlight 2.0 Beta – Part One

Animation allows us to create attractive user interfaces. Animation is used to apply dazzling effects such as spin a logo or video, make text scroll, make images grow when the mouse is over them etc. Animation is much like varying the property value over time as far as Silverlight 2.0 is concerned. This will be clear if someone takes a closer look at the animated stuff done in Silverlight/WPF applications. For example, it is possible to make an element grow by increasing its Width and Height or changing its Color value or its opacity in a specified duration.

                                                                                         Read more

 

kick it on DotNetKicks.com

 

Posted: May 10 2008, 02:31 AM by ilves | with 1 comment(s)
Filed under:
Page view counter