Reproduced WPF Introductory Tutorial Series one--basics

Source: Internet
Author: User

First, preface

Recently, when learning WPF, WPF first started with Microsoft's MSDN and then searched the web for WPF learning materials. In order to warm so know the new learning process recorded, for later. This article focuses on the development foundation of WPF and describes how to create a WPF application using Visual Studio 2013.

Let's start by talking about the basics of learning WPF:

1) to be a door. NET supported programming languages. For example, C #.

2) A little bit of "standard Universal Markup Language": The XAML language used by the WPF Forms program, and also a branch of the standard Universal markup Language. If you have previously contacted XML, HTML, XHTML, ASP. NET, such as "standard universal Markup Language," is helpful for learning.

3) There are certain WinForm or ASP. NET experience, mainly on the handling of control events to have some understanding.

4) have a good object-oriented thinking: In WPF, often flexible use of various inheritance relationships, polymorphism, overloading and so on.

5) DataBinding to know: binding is a great highlight of WPF.

6) to have a certain understanding of the design pattern: Of course, the deeper the better, in the actual project, a variety of design patterns often mingle with each other.

Second, the tools used in this series:

1) Development environment: Windows 7 Chinese version

2) Development tools: Visual Studio 2013 Chinese version

3) database: Native SQL Server-Express

4) ORM Tool: Entity Framework.

The Entity framework compares to NHibernate :

1)Entity Framework package Better, add, delete, change, query more convenient

2) The Entity Framework uses a more convenient Linq to Entity query, deferred loading (loading only when needed, loading only the required data).

III. Basics of WPF development

First, after you have installed the above mentioned tools, open Visual Studio 2013, select "Menu-" file-"New-" project. Such as.

Second, in the New Project dialog box, select WPF application, modify the name WpfApp1, and then click the OK button to successfully create a WPF application. The public class libraries referenced by the newly created project are as follows. Such as. (The WPF application automatically adds the PresentationCore, PresentationFramework, windowsbase three core assemblies shown in the reference).

Third, the WPFAPP1 project's generated file structure. Such as.

The "StartupUri" property in App.xaml can specify the startup form when the project runs. As in "startupuri=" MainWindow.xaml "", we can also define the system resources we need and introduce the assembly. Such as.

In the design form of MainWindow.xaml, we can modify the title. You can also set properties for MainWindow and add events. Once these settings are complete, we can add content to the form, such as. I added a ListView, two WrapPanel, two buttons, and so on in this form.

The following resources can also be added in the WPF Xmal file. Such as.

Iv. Summary

WPF applications are created in addition to using Visual Studio, you can also use expression Blend.

When it comes to learning the development of WPF, you have to learn MVVM and learn MVVM first to understand the concepts of MVC and MVP.

I have done WinForm, ASP. NET, such as the use of various types of. NET technology projects, although Microsoft's technology has been progressing, change, but the most basic things have not changed, such as database access, file read and write, log processing, program exception processing, reporting, printing, performance optimization, friendly interface.

Reprinted from: WPF Introductory Tutorial Series one--basics

Reproduced WPF Introductory Tutorial Series one--basics

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.