Welcome to WindowsClient.net | Sign in | Join

Faisal's Blog

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:

Comments

Dew Drop - May 30, 2008 | Alvin Ashcraft's Morning Dew said:

Pingback from Dew Drop - May 30, 2008 | Alvin Ashcraft's Morning Dew
# May 30, 2008 9:54 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

Page view counter