Getting Started with Windows 8 development (ii). Windows 8 Development Knowledge Reserve

Source: Internet
Author: User
Tags split

In this article will be sorted out some of the Windows 8 before development needs to understand some of the basic knowledge and listed as a corresponding several tables for your reference, some of them from the MSDN, part of my collation, such as error, please correct me, thank you.

First, create a new common XAML project type template and a variety of language relationships

Project type name Project type function and description Applicable language
Blank Application Create a simplified, blank XAML Application
For the user to use, need to add their own
interface, public code, and so on.
C#/vb/c++/javascript
Split Apply Layout program Show master-slave lists, such as news listings
(Divided into a number of news categories, each news category
The next direct is to be able to select the corresponding news headlines to see content)
C#/vb/c++/javascript
Grid applications You can customize the application to create a allow user
Browse through categories to find exactly what they need
Content. For example: shopping applications, news applications, and
Photo or video applications.
C#/vb/c++/javascript
Fixed Application Layout Program Provides the same basic Metro as the blank application template
Style application, the difference is its content
Suitable for fixed viewing area
Javascript
Navigation Application Layout Program Provides basic navigation, application desktop toolbars
(Application bar) and the layout based on media mode,
These layouts are also used in grid applications and split applications.
The navigation application template contains only one minimum page fragment.
You can easily add more page fragments to it.
Then you can add your own content.
Javascript
DIRECT2D applications Can build Metro style apps that use DirectX C++

Second, application list

Filename Tab feature Description Applicable language
Application UI Configure UI settings, including various
LOGO, splash screen, and initial orientation.
C#/vb/c++/javascript
Function Specify the system features you can use for your application
or devices, such as Internet access,
Access to video libraries and music libraries
C#/vb/c++/javascript
Statement Add declarations for application contracts, such as search and
Share the target contract, and specify its properties.
C#/vb/c++/javascript
Content URI Specify that your application can be accessed or inaccessible
URI, only the project created in the JavaScript language
Javascript
Packaged Identify and describe the package's properties when you set up the deployment package C#/vb/c++/javascript

There is a common folder under the new XAML project type template (split application layout program, grid application), which has a few public files, and the code meaning is as shown in the following table:

Filename Describe Applicable language
Standardstyles.xaml Defines the styles and templates that are used by project and item templates.
Because we have carefully designed these styles
(For example, text formatting, margins, and so on),
Not only make them attractive, but they can always stay consistent,
So please use these styles in your application and/or
Derive a new style from these styles (see "Modifying Styles" below).
possible. Do not change the style directly in this file.
But use them in your control and/or through them
To create your own new style (see "Modifying Styles" later in this topic).
C#/vb/c++
ReadMe.txt Contains important information about the template. When you update the template,
The Readme information will also change. We advise you to
Read the information in this file first when you use the new template.
C#/vb/c++
Bindablebase. cs|. vb|. cpp|. H This is a basic class that provides
The realization of inotifypropertychanged.
You are free to build any class based on this class.
C#/vb/c++
Booleannegationconverter. cs|. vb|. cpp|. H Converters that are used in XAML. Reverse the Boolean value. C#/vb/c++
Booleantovisibilityconverter. cs|. vb|. cpp|. H Converters that are used in XAML.
Converts a Boolean value to a visible state.
C#/vb/c++
Layoutawarepage. cs|. vb|. cpp|. H ? primarily used to listen for view state change events
(for example, attach, portrait, and fill states),
and to respond by switching the visual state of the page.
You can override this line to provide a custom visual status name,
However, the event code provided in this file is still used.
For example, when the application is in the direction of sticking,
If the user's UI is different (for example, when a user logs on and logs off),
You can use the two visual state names that correspond to these different UIs.
However, the same event code that is provided in this file is still used.
Contains the default view model. For simplicity's sake,
We have created a property in this file,
That is, "a dictionary that maps a string to an object."
This provides a lightweight view model for you to use in a variety of views
Bind the data. You can use this view model at your discretion,
or provide your own view model and ignore this attribute.
Because each page has the same "back" button,
So we provide an event handler in this root type,
Because they always have the same navigation service invocation.
C#/vb/c++
Richtextcolumns. cs|. vb|. cpp|. H In a grid application, when you view project details,
We want to display all the text for a given item.
It is best to display the text vertically in a fixed-width column first.
It is then displayed horizontally in as many columns as possible.
This control provides this mechanism.
You just provide the content you need and the template for each column,
It will automatically generate the required number of columns for your data dynamically.
C#/vb/c++
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.