The first day, wpf of hello world (3)

In Visual Studio 2008

Open Visual Studio 2008 Select "File", "New", "Project ..." is the right choice. "WPF Application".

Select a folder to write the name. You can point "OK" a

The first day, wpf of hello world (3)

Was created. By default, the right you can see a number of files generated, used vistual studio to create projects, will automatically create better documents and they are app.xaml, app.xaml.cs, windows1.xaml, windows1.xaml.cs

Click windows1.xaml the left is the design. We are in the toolbox drag controls come in two to achieve our first wpf hello world.

The first day, wpf of hello world (3)

At this time we will be in the right click button on the properties window. See the properties, events, etc.

Note: If you are installing the vistual studio 2008 and do not see a small icon attribute the incident, saying there is a patch you want to make about sp1.

I am just looking for a long time is that Bahrain is not the two small icons. Mad at me.

The first day, wpf of hello world (3)

In the incident. Find a click event. Write a response to click event of the function name will automatically jump to the appropriate code for carriage return.

private void button1_Click(object sender, RoutedEventArgs e)
    textBox1.Text = "Hello WPF!";

Add a line of code on it

Press f5 to run. Will pop up you write the first application of the wpf.

The first day, wpf of hello world (3)

分类:DotNet 时间:2010-03-27 人气:262
blog comments powered by Disqus


  • JSF tag <f:param/> not have to pass the value of the carriage return! 2010-02-07

    Hello All, JSF <f:param value=""/> tag value value can not have a carriage return, If there is a carriage return will affect the page display, nor reported any errors. Deal with tricks up their sleeves for you brother. Thanks ..

  • JPA handle carriage return problem! 2010-02-07

    Hello All, Add carriage return character to use JPA feasible, but Optimistic lock, the query out, and then deleted, Will be reported [Reason = <openjpa-1.1.0-r422266:657916 nonfatal store error> org.apache.openjpa.util.OptimisticException: Optimisti

  • Carriage return and line feed 2010-03-17

    Plan a lot to learn regular expressions, so first figure out some basic concepts, starting with a carriage return and line start The following is an excerpt from Ruan Yifeng's blog Wrote, Today, I

  • How to add a carriage return in the event page 2010-04-02

    The content is purely on-line data collection, not original, I hope to help people in need. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""> <html xmlns=

  • sql server replace the carriage return symbols in 2010-04-16

    replace (replace (TrainAcquaintance.Comment, char (10 ),''), char (13 ),'') char (13) is represented by a carriage return

  • Carriage return line feed (\ r \ n) order 2010-04-20

    Subject: carriage return, line feed! Environment: Window The keyboard "Enter" key to almost no one does not know, something well-known, carriage return, line feed many people and remembered very difficult to talk normally, but specific to text p

  • oracle newline in the text removed. carriage return. Summary tab 2010-04-23

    oracle text removed newline, carriage returns, tabs, a summary, the definition of special symbols ascii tab character chr (9) Line feed chr (10) Carriage return chr (13) Second, nest repalce, note you can only submit a sign, such as the first carriag

  • Newline character '\ n' and carriage return '\ r' difference 2010-05-05

    Answer: Yes, the name suggests, is another line breaks from the line, carriage returns, is back to the beginning of a line, we usually write the file should be precise, is called the carriage return line feed carriage return -------------------------

  • I / O file content in the carriage return line feed 2010-05-05

    Linux and Unix systems for line is "\ n", while the windows line breaks are not direct "n", a "\ r \ n". So out.write ("\ n") can only get a black box, because windos do not think this is a "wrap." Input d

  • On linux and windows of the CR, LF, CR / LF carriage return line feed problem 2010-05-06

    In text processing, CR, LF, CR / LF is the line breaks use different operating systems. Dos and windows: use carriage return + line feed CR / LF that the next line. UNIX / Linux: that the next line by line feed LF. MAC OS: carriage return CR expresse

iOS 开发

Android 开发

Python 开发



PHP 开发

Ruby 开发






Javascript 开发

.NET 开发



Copyright (C), All Rights Reserved. 版权所有 闽ICP备15018612号

processed in 0.032 (s). 13 q(s)