C# WPF Hello World Introduction


This entry is part 1 of 4 in the series WPF Hello World

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.

Series NavigationC# WPF Hello World 2 >>