O'Reilly logo

Windows Application Development Cookbook by Marcin Jamro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using animation to hide controls

Sometimes, it may be necessary to hide some controls on the page, for example, when they are no longer active or important for a user. Of course, you can easily change their visibility, but is it possible to hide a control with an animation? Of course! In this recipe, you will learn how to fade out the text block once you press the button.

Getting ready

To step through this recipe, you need the project from the previous recipe.

How to do it...

To modify the preceding example to fade out the text block after pressing the button, perform the following steps:

  1. Define the storyboard with the fade out animation in the page resources and add a button to start the animation. Perform this step by modifying the content of the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required