SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 206 | Next

Robin Pars, Laurence Moroney, and John Grieb

"Foundations of ASP.NET AJAX"

The actual animation is defined where a sequence is described within the
event of the image control. The length animation itself is defined in a single
line with the tag and its corresponding properties. This tag resides
inside a tag, which basically defines an animation sequence segment. Start by
setting the AnimationTarget property to the target control, Image1. The default unit on the
length animation property is "px", so the animation will change the width property to a
number of pixels.
CHAPTER 7 ?–  USING THE ASP.NET AJAX CONTROL TOOLKIT (PART 1) 141
You define this number by specifying startValue and endValue. In this case, set
startValue to 800, and set endValue to 200. Because you want these values to apply to the
width of the image, set the Property to "style" and the PropertyKey property to "width".
Finally, set the duration to 15. This means the values 800px??“200px will be sent to the width
property of the image over a duration of 15 seconds. Changing the duration to a smaller
value will mean that the image will grow to its final size more quickly, and changing it to
a larger value will mean that it grows more slowly.


Pages:
194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218