Windows Phone 7ProgramIntroduction
There is not much to say about how to create a new one. developers who have experience with Visual Studio ide will start on the page. After the creation, as shown in, the simulator for Windows Phone is displayed on the left and the interface is displayed on the right.CodeThe editing area is run in the XAML language.
Solution Explorer
- Appmanifest. xml: In vs, appmanifest. XML is basically empty and has no specific content. During build, vs generates appmanifst. XAML Based on the Assembly you are using.
- Assemblyinfo. CS: Set general information about an application, such as the application name, company, author, and version.
- Wmappmanifest. xml: This file records the attributes of the application and defines the functionality of the application. For details, see application manifest file for Windows Phone.
- App. XAML application definition: Contains the four application running cycle events automatically generated by launching, closing, activated, and deactivatedg, which respectively represent startup, shutdown, activity status, and inactive status. The event code can be found in the app. XAML. CS, including exception capture events of the application and completion of APP Initialization
- Applicationicon.png: Default Application icon
- Background.png: Default Application large icon
- Mainpage. XAML: Main Application Interface
- Splashscreenimage.jpg: Wait interface when starting the application
Develop Explorer
As shown in, below the code editing area, we can see a annotated line of code, which is the toolbar of the mobile phone system application, including the toolbar buttons and menus, these are separated from the Silverlight layer above. After the annotations are removed, see
As you can see two buttons and two menu items, but the button does not have an icon, the icon to add the button is very simple, you can use your own icon, you can also use expression blend 4 to add it.
Xap
How can we publish and install the compiled application? Unzip to decompress the package, and put the file on your mobile phone for installation.
You can also use the Application Deployment Tool to deploy and run xap files, as shown in figure
Terminator
Windows Phone emulator occupies a lot of memory and CPU usage. We recommend that you upgrade the hardware before developing Windows Phone.