Windows 8 front-end development experience

Source: Internet
Author: User

Last year, I was still learning wp7. who knows that after a year of learning technology growth, a Microsoft WP7 could not be upgraded to WP8, And I was overwhelmed. Compared with Android, WP7 is much cooler. I finally found an internship on WP7, and the project was forced to stop after half of the result. At this time, the company asked us to start learning win 8 development and prepare to develop win 8 projects.

Well, I don't mention that much. Actually, I am also a beginner. However, some experience in WP7 and WPF makes it much easier for me to learn win 8.

Windows 8 foreground programming, I personally think that there is no big difference with the previous WP7 and WPF. The main purpose is to understand the overall structure of the page.

Before starting a page, I personally thought that I should first understand the container control. Common container controls are grid and stackpanel, and canvas ). The grid feature is that it can adapt to the screen size, automatically fill the blank space, and the grid can be divided into rows and columns. Stackpanel is a control with the automatic layout function. My favorite layout is the layout of the outer layer with grid. The whole page is first divided, and stackpanel is used for layout. The advantage of doing so is that the overall structure is relatively strong. If all the controls are arranged in the grid using margin, it is difficult to control the layout when the layout is changed when the page is landscape or pasted, in addition, the layout itself is very unorganized.

There are many good controls in win 8. Popup is a control that I like very much. Popup itself is a container control that can be popped up. We can use popup to make many things, such as pop-up menus and pop-up boxes. In win 8, ComboBox is a very common control, but the ComboBox style is too ugly. We can use popup and a textbox to create something similar to ComboBox. Put a popup under the textbox, and then put a border in the popup, and then put a ListBox binding in the border to the data we want to select. Then popup is displayed when textbox is focused. After selecting the option, the content of textbox is updated, so that a ComboBox is complete.

Win 8 also has a frame control, which can be very helpful for navigation of the entire application. Frame can be used for page navigation. We can do this. Put a frame in a page, and all the navigation of the application is done on this frame. What are the benefits of doing so? Win 8 has many contracts, such as searching and setting contracts. When we want to add a contract, we need to add the contract getforcurrentview () to the event processing on every page. After jumping out of the page, we need to subtract the event, which is very troublesome. Now we can place these contracts on the external page, and all the navigation is performed on the frame in the page. In this way, no matter how we navigate, we only load these contracts once, saving a lot of repetitive work.

I still don't know what to do. I am a newbie. Please forgive me for writing a blog for the first time.

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.