Msdn Teaching Short Film WPF 1 (create, design, execute and deploy WPF applications)

Source: Internet
Author: User
Tags visual studio 2010
How to create, design, execute, and deploy a WPF Application Program 1. What is WPF?

1. Integration with the job system and vector-based UI Combination Engine

2. Unified UI interface, file and media programming

3. Declarative Programming

4. easy deployment

For more information, see Baidu encyclopedia.

Http://baike.baidu.com/view/292311.htm

2. WPF applications can be executed in two ways

1. standalone (stand-alone, like winform)

2. xbap (XAML browser applications)

3. Create a New WPF application. Enable Visual Studio 2010 first. You can also set this feature on our host to be set. However, the WPF web application is removed from vs2010.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

We can also press the shortcut key Ctrl + Shift + n

Create a new WPF application. After opening the application, we can see the following figure:

Note: In <WINDOW> </WINDOW>, there is also a webpage format in <page> </Page>.

Let's add two buttons to him.

Let's give button1 a click event. Let's look at the backgroundCode. Right-click to view the code or press the shortcut key F7

We provide the content of button1 with a current time; toshorttimestring () is a short time format.

Press F5 to run the result:

When we click the button below

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.