Skip to Main Content
Programming WPF, 2nd Edition
book

Programming WPF, 2nd Edition

by Chris Sells, Ian Griffiths
August 2007
Intermediate to advanced content levelIntermediate to advanced
864 pages
25h 52m
English
O'Reilly Media, Inc.
Content preview from Programming WPF, 2nd Edition

Chapter 16. Animation and Media

Imagine an application with a completely static appearance, which offers no visible reaction to mouse clicks or other input—it would sometimes be hard to tell whether that application was functioning or had frozen. We depend on visual feedback to assure us that applications are responding to input. Adding movement to your user interface can bring it to life, enhancing the interactive feel of the application. Animation can improve the realism of visual transitions intended to suggest physical movement, such as buttons that become visibly pushed in when clicked.

Animation is also useful for dealing with transitions from one view to another. In the real world, we are not used to seeing items materialize instantaneously out of nowhere, but computer programs often use abrupt transitions. In the very early days of cinema, editing shots to make objects or people appear suddenly was an effective way of scaring the audience, because it was such an unnatural thing to see. These days we are accustomed to unreal imagery and are not so easily shocked, but sudden transitions can still jar. Careful and subtle use of animation can make it much easier for a user to follow visual transitions, such as a move from one page to another or the appearance and disappearance of UI features.

For many years, Windows has been able to play video clips, but only as isolated islands of moving content. Animating features of ordinary controls has typically been much harder. WPF makes ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming C#, 4th Edition

Programming C#, 4th Edition

Jesse Liberty
Programming C# 10

Programming C# 10

Ian Griffiths

Publisher Resources

ISBN: 9780596510374Supplemental ContentErrata Page