In this article, we will sort out some basic knowledge that needs to be learned before Windows 8 Development and list it as a corresponding table for your reference. Some of them come from msdn and some from my own organization, correct the error. Thank you.
I. Relationship between creating common XAML project templates and various languages
Project type name |
Role and description of the project type |
Applicable Language |
Blank Application |
To create a simplified white-space XAML application, you must add the interface and public code. |
C #/Vb/C ++/JavaScript |
Split application layout program |
Display a master-slave list, such as a news list (divided into multiple news categories, each news category can directly select the corresponding news title to see the content) |
C #/Vb/C ++/JavaScript |
Grid applications |
You can customize the application to create content that allows users to browse by category to find content that fully meets their needs. For example, shopping applications, news applications, and photo or video applications. |
C #/Vb/C ++/JavaScript |
Fixed application layout program |
Provides the same basic Metro-style applications as the blank Application Template. The difference is that its content is applicable to fixed video areas. |
Javascript |
Navigation Application layout program |
Provides basic navigation, application desktop toolbar (Application bar), and media-based layout. These la s are also used in grid applications and split applications. The navigation application template contains only one minimum page segment, and you can easily add more page segments to it. Then you can add your own content. |
Javascript |
Direct2d Application |
You can build Metro-style applications using DirectX |
C ++ |
2. Application List
File Name |
Tab Function Description |
Applicable Language |
Application UI |
Configure UI settings, including various logos, initial screens, and initial directions. |
C #/Vb/C ++/JavaScript |
Function |
Specify the system functions or devices that your application can use, such as Internet access, video library and music library access. |
C #/Vb/C ++/JavaScript |
Statement |
Add a statement for the Application contract, such as searching and sharing the target contract, and specifying its attributes. |
C #/Vb/C ++/JavaScript |
Content URI |
Specify the URI that your application can access or cannot access. Only projects created in Javascript |
Javascript |
Package |
Identifies and describes the attributes of a deployment package. |
C #/Vb/C ++/JavaScript |
3. There is a common folder under the newly created XAML project type template (split application layout program and Grid Application Program), which contains some public files. Its code meaning is shown in the following table:
File Name |
Description |
Applicable Language |
Standardstyles. XAML |
Defines the styles and templates used by the project and item templates. Because we have carefully designed these styles (for example, text formats, margins, etc.), not only make them attractive, but also keep them consistent, therefore, use these styles in your application and/or create new styles from these styles (see "Modify styles" below "). Possible. Do not change the style directly in this file, but use them in your controls and/or use them to create your own new styles (see "Modify styles" next to this topic "). |
C #/Vb/C ++ |
Readme.txt |
Contains important information about the template. When the template is updated, the self-reported information will also be changed. We recommend that you read the information in this file before using the new template. |
C #/Vb/C ++ |
Bindablebase. CS |. VB |. cpp |. h |
This is a basic class that provides the implementation of inotifypropertychanged. You can build any class based on this class at will. |
C #/Vb/C ++ |
Booleannegationconverter. CS |. VB |. cpp |. h |
The converter used in XAML. Returns the inverse of a Boolean value. |
C #/Vb/C ++ |
Booleantovisibilityconverter. CS |. VB |. cpp |. h |
The converter used in XAML. Converts a Boolean value to a visible state. |
C #/Vb/C ++ |
Layoutawarepage. CS |. VB |. cpp |. h |
• It is mainly used to listen for view status change events (such as posting, portrait, and fill status) and respond by switching the visual status of the page. You can replace this behavior to provide a custom visual state name, but still use the Event code provided in this file. For example, when an application is in the Peer direction, if the user's UI is different (for example, when a user logs on or logs off), two visual State names corresponding to these different UIS can be used, however, the same event Code provided in this file is still used. • Contains the default view model. For simplicity, we have created an attribute in this file, that is, "a dictionary that maps strings to objects ". This provides a lightweight view model for you to bind data to various views. You can use this view model at will, or provide your own view model and ignore this attribute. • Since each page has the same "return" button, we provide event handlers in this root type because they always have the same navigation service calls. |
C #/Vb/C ++ |
Richtextcolumns. CS |. VB |. cpp |. h |
In a grid application, when viewing project details, we want to display all the text of a given project. It is recommended that the text be vertically displayed in a fixed-width column, and then horizontally displayed in as many columns as possible. This control provides this mechanism. You only need to provide the required content and the template for each column, it will automatically generate the required number of columns for your data dynamically. |
C #/Vb/C ++ |