Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to create the first wpf application with vs2012

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail how to use vs2012 to create the first wpf application. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

Windows Desktop applications wpf tutorial-create wpf applications

Development environment: visual studio 2012, you can use a higher version according to your own situation, because my computer installed two versions of vs, do not want to install another one, so use the 2012 version.

Open vs2012, create a new project, and select the wpf application

After the creation is completed, you can see that the window is composed of three parts, the project structure, the window area and the corresponding code area of the window.

In the solution, the first file is app.config, which is the configuration file of the system and is used to record configuration information, such as database connection strings, etc.

App.xaml is the main application entry for system startup. You can modify the main window for application startup by setting StartUri.

App.xaml.cs is the background code corresponding to app.xaml, which is very similar to winform in web development.

MainWindow.xaml is the default main window created automatically, and there is also a corresponding cs file.

Click f5 to run the program directly, and the result is a blank window page

Our first wpf application is complete.

This is the end of this article on "how to create the first wpf application with vs2012". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report