Original address:
http://channel9.msdn.com/Series/Windows-Phone-8-Development-for-Absolute-Beginners/ Part-10-overview-of-the-databound-app-and-pivot-app-project-templates
Source code: HTTP://AKA.MS/ABSBEGINNERDEVWP8
PDF version: Http://aka.ms/absbeginnerdevwp8pdf
We took 9 lessons to learn the basics of Windows Phone and have created a simple application. The PetSounds application is a good start, but it has some limitations. At present there is only one kind of sound, that is, the animal's voice, we have two buttons, so we can have two kinds of sounds.
We can turn it into a more comprehensive sound-panel application with different categories of sounds, even if we can record a custom sound. We need a good way to represent the sound categories in the application, and there is at least one template available in Visual Studio that will provide a good starting point to help us get very close to our ideas.
So in this lesson I'll take a look at two project templates to learn more about what they can do, and identify the points of alignment between their built-in capabilities and the new soundboard application requirements.
Here is the plan for this lesson:
Create a Windows Phone data binding application (DataBound app) project template sample to discover its built-in features and view the code to understand how to implement these functionality.
Repeat this procedure for the Windows Phone perspective application (Pivot app) project template.
1. Understanding the features of the Windows Phone data-bound Application project template
In Visual Studio, select the New | item in the File menu to open the New Project dialog box:
Confirm that you are in the installed | templates | Visual C # | Windows Phone
Select the Windows Phone data Binding Application project template.
You do not need to modify the name, we will delete this item at a later time.
Click OK.
Once the project is created, press F5 to start debugging before any other action is taken. This allows us to observe the "out-of-the-box" function.
When the application is running, you will see a list of items in the main page that contain "runtime one", "Runtime two", and so on. Each item has a subtitle similar to the text "Lorem ipsum":
A single hit item will display a second page that contains details of the item you clicked. Here you will see the complete "Lorem ipsum" text associated with the item you selected.
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/extra/