Windows Phone 7: simple drag flip Control

Source: Internet
Author: User

A similar control is required for the project, so a simple one is written and shared. The effect is as follows:

Both the upper and lower controls are the control. After you touch the control left or right, the current control will flip and jump to the next control.

 

The control source set is set through the childcontrols attribute, and the type is the uielement array. After childcontrols is set, the first control is displayed. At the same time, you can set the index value of the currently displayed control using the setcurrent method. The settings will also be animated.

 

There are two other events: moreleft and moreright, which occur when the front control or the last control user is still flipped forward or backward.

 

Note that a default template is required for the control to work normally.ProgramThe default style can be found in the themes/generic. XAML file in the project file.

 

 

The current version of the program andSource codeDownload

Note: This is an archive of Microsoft SkyDrive. Please download it directly in your browser. Some download tools may not be available for download.
SourceCodeEnvironment: Microsoft Visual Studio 2010 express for Windows Phone

Related Article

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.