- C# WPF Hello World Introduction
- C# WPF Hello World 2
- C# WPF Hello World 3
- C# WPF Hello World 4
With Visual Studio 2017 you can create a Windows program by selecting File, New Project and selecting a directory folder and specifying a file name, as you can see in the screenshot below. This is NOT a WPF program however. We use this as just an illustration and then we will move to a WPF Hello World program.
Not WPF
This is NOT a WPF program. The next post begins a series with a WPF Hello World program that we build by step by step. For some theory on WPF (and some practical examples) there is another series of posts starting with C# Windows Presentation Foundation (WPF) Introduction. The Hello World series of posts is used to get you started coding and developing right away.
Below is a screenshot of what the Solution Explorer looks like.
We’ve dragged a few controls from the Toolbox on the left side of Visual Studio. We’ve adjusted some of their properties. The button we’ve added has a click event where we display a message box when the button is clicked. That code is in the Form1.cs file. Below is a sscreen shot of the program running in Debug mode after the user clicked the Greeting button.