Windows Store App Control animations

Source: Internet
Author: User

in developingWindowsApp Store app, the developer tool has encapsulates a large number of controls for use by developers, some of which are controls such as FlipView ,ToolTip ,ListView and SemanticZoom The built-in animations are already integrated by default in the controls, and the animations that are integrated in the controls are called control animations, and developers can select animated controls to meet the needs of specific animations based on different scenarios, providing a good operational experience for the user. For example, when an application obtains data from the network, to avoid the user's misunderstanding of the interface pauses caused by long waiting on the page, the user can be informed by using an indeterminate progress loop in the page, when the application is running, and the process loop control is a typical control with an animated effect built in.

built-in animations in controls provide a better user experience for commonly used controls, because most of the commonly used controls are explained in detail in chapter fifth earlier in this chapter, including controls with built-in animations, so the controls described previously are not repeated in this section. Describe the meaning of The control animation only as an example of a FlipView control with typical characteristics.

FlipViewcontrol can implement an interface element that is contained in an alternating display and provide over-animation in an alternating display, and the most common scenario is to use theFlipViewcontrol to show a group of pictures as if you were playing a set of slides, you can clickFlipView Bring your own toggle view buttons or use gestures to swipe left and right to toggle each of the pictures shown. Here's an example that shows how to use the FlipView the control implements an animated effect that alternately plays the picture.

in theVisual StudioCreate a newWindowsApp Store's blank app project, and namedFlipViewApp, in the project'sAssetsfolder under Add3a name of "flower.jpg","mountain.jpg","car.jpg"The picture file, and then double-click OpenMainPage.xamlfiles, inGridelement, add the following code.

<!-- FlipView Control -

<FlipView>

<image source= "Assets/flower.jpg"/>

<image source= "Assets/mountain.jpg"/>

<image source= "assets/car.jpg "/>

</FlipView>

in the code above, a display of the image is added.FlipViewcontrol, and then toFlipViewcontrol to add the3aImagecontrol and by setting the control'sSourceproperty to specify the path to the picture, which can beFlipViewControl Display3aImagethe picture in the control.

Press the F5 Run the program, the interface display effect 10-1 is shown.

Figure 10-1 FlipView alternating animation effects of controls

from the above example, the reader will find FlipView control animations enhance the user's interaction with the control by clicking the Toggle View button on the left and right side of the picture to enjoy the image of interest. In the process of alternately playing the picture, the resulting animation effect is natural and smooth, giving the user a good operating experience.

Windows Store App Control animations

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.