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