Go deep into WPF-What is XAML

Source: Internet
Author: User

Small order:

Do you still remember Zhou xingchi's sentence? "If there is no ideal person, what is the difference with salted fish ". When I step on the journey to pursue the ideal, I find that I have to give up a lot of ideas ...... Only at this time can we understand what is "willing ".

Report to all my friends who are interested in me. I started to write "go deep into WPF. Now we have completed two or three chapters. I will publish some parts to my blog one after another. Please give me more valuable comments.

I know that the only thing that inspires me to move on is the encouragement from friends and editors!

I need you!

 

Body: (it seems that today's body is the simplest-Copy it directly and then Paste it !)

 

 

1. What is XAML?
Since the birth of human society, the division of labor in society has continued. From the separation of animal husbandry and agriculture in primitive society to the collaboration of thousands of industries in today's society, there is no masterpiece of social division of labor. The significance of social division of labor is that it can make the people engaged in fixed work more professional, and improve production efficiency through cooperation. In other words, when cooperation is not a problem, several groups of professionals work more efficiently than a group of "big and complete" professionals.
This relationship between division of labor and cooperation exists not only between industries, but also within the industry. The most typical division of labor in software development is collaboration between designers and programmers. Before the emergence of WPF, the scenario of collaboration is generally as follows:
1. After the requirement analysis, the programmer designs a sketch of the User Interface (UI) based on the requirements, and then focuses on implementing the functions of the software.
2. At the same time, designers can design a beautiful and practical UI based on their needs, consider User Experience (UE), and use specialized design tools (such as PhotoShop ).
3. Finally, programmers use programming languages to implement the software UI Based on the designer's
Experience tells us that even a good designer team works with a good development team, the effort spent on communication and final integration is enormous. Frequently encountered problems include:
• The designer's design cannot keep up with the changes in the Program Logic
• Programmers fail to fully implement what designers provide
• Cannot fully match program functions
• Transition from software UI takes a lot of time
These are not the right or wrong questions-as long as there is a division of labor, the cost of cooperation cannot be zero. The core of the problem is that the above cooperation is "serial", that is, first completed by the designer, and then implemented by the programmer through programming. If the designer can "work in parallel" with the programmer and directly participate in program development, the above problems will be solved.
What is the solution? Is it for designers to use programming languages to design the UI, or for programmers to use PhotoShop to develop programs? Obviously, none of them work.
The experience of the Network Program Development Team is worth learning: After the sketch is generated, designers can directly generate the UI using HTML, CSS, and JavaScript, programmers implement the functional logic behind the UI while generating it. In this parallel cooperation, designers can use Dreamweaver and other design tools, and programmers can use Visual Studio for background programming. Experienced designers and programmers often have the ability to swap tools, which enables them to communicate effectively based on the HTML + CSS + JavaScript platform.
To port this development mode from network development to desktop development and development of rich media network programs, Microsoft has created a new development language-XAML. The full name of XAML is Extensible Application Markup Language, that is, "Extensible Application Markup Language ". It plays the role of HTML + CSS + JavaScript in desktop development and Rich Media Network Program Development and becomes the hub for communication between designers and programmers.
Currently, designers and programmers work together to jointly maintain the software version, but they use different tools-designers use Blend (one of the Microsoft Expression design tool kits) to design the UI, programmers use Visual Studio to develop background logic code. Blend is similar to PhotoShop and other design tools, so you can maximize your expertise. With it, designers can not only make a colorful static UI, but also make the UI contain animations-although programmers can also make these things, however, it is clearly impossible to determine the professionalism, time expenditure, and technical requirements. More importantly, these beautiful UIS and animations are saved to the project in the form of XAML, and can be directly compiled without conversion, saving a lot of time and cost.
Next time, when you are asked "What Is XAML" during the interview, you can answer: XAML is the language that WPF technology specifically uses to design the UI.

 

This article from the CSDN blog, reproduced please indicate the source: http://blog.csdn.net/FantasiaX/archive/2008/12/25/3599807.aspx

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.