Create a simple WPF Application
In this article you will learn how to create a simple WPF application.
To create a simple WPF application you need to follow these simple steps which given below's:
Open visual studio and go to File menu click on New and select Project.
Choose WPF Application under Visual Studio Templates and given the name to WPF Application and click on Ok.
Go to the Solution Explorer and open MainWindow.xaml "by double click on it".
Now drag one Button and one TextBox on WPF designer pane.
Go to the Properties window and set the Content Property of the Button as OK.
Now double click on the Button and write down this code.
Private Sub Button1_Click(ByVal sender As System.Object,ByVal e AsSystem.Windows.RoutedEventArgs)Handles Button1.Click
TextBox1.Text = "HELLO STUDENTS"
Now run the application by pressing F5, and on output window when you click on "OK" the message will shows in TextBox.
Hope this article helps you when you create an simple WPF application.