The first day, wpf of hello world (3)

sponsored links

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)
  • del.icio.us
  • StumbleUpon
  • Digg
  • TwitThis
  • Mixx
  • Technorati
  • Facebook
  • NewsVine
  • Reddit
  • Google
  • LinkedIn
  • YahooMyWeb

Related Posts of The first day, wpf of hello world (3)

  • Hibernate doubts

    Hibernate has been used recently, encountered in the implementation of inquiry A "Session is closed!" Troublesome, is as follows: org.hibernate.SessionException: Session is closed! at org.hibernate.impl.AbstractSessionImpl.errorIfClosed (Ab ...

  • JS after ajax request return of the problem can not be implemented

    1: Send ajax request, in the onComplete, if back when the html contains a javascript, then these javascrip and will not be realized, it does not mean not to implement. This problem has troubled me for a long time, behind the hair and then put this kn ...

  • Detailed JS regular expressions

    Opening, or have to talk about ^ and $ that they are separately used to match the beginning and end of the string, the following examples to illustrate separately "^ The": there must be at the beginning of "The" string; "of despai

  • Use Ext JS to read the JsonReader complex object json

    Today was how to resolve the following complex json object to the difficult living over a long time .. did not find documentation how to read JsonReader Ways json object (possibly also because of their limited level of E the text did not correctly underst

  • JavaScript inheritance

    About JavaScript inherited a small example ... <! DOCTYPE HTML PUBLIC "- / / W3C / / DTD HTML 4.01 / / EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" conte ...

  • JavaScript String Functions Guinness

    Own JS function 1.Asc (x), Chr (x): convert characters, character code 2. Filter: Search string array of a specific string Format: v = filter (x, s [, include [, compare]]) Examples: Dim x ()={" kjwang "," wangkj "," peter ")

  • EJB ant script to deploy template works

    <? xml version = "1.0" encoding = "UTF-8"?> <! - Name Project name basedir build.xml file directory -> <project name="HelloWorld" basedir="."> <! - Property variables -> <! - The sour ...

  • java read file

    java read documents in two ways: java.io and java.lang.ClassLoader When using the java.io, when java.lang.ClassLoader use it? (Note: If prior to read xml file java read file clearly aware of these two methods have been like! Can take much less to understa

  • JDBC example of a long time do not have JDBC forgot

    A back-up here to stay. The first: The second:

  • Based on JDBC, JPA Annotation achieve simple CRUD Generic Dao

    The origin of ideas are pretty long history of reasons: [Use iBATIS history] The use of iBATIS has been a long time, the system is to use the CRUD template tool to generate the code, although there are tools to generate, but looked at a lot of CRUD the Sq

blog comments powered by Disqus
Recent
Recent Entries
Tag Cloud
Random Entries