Chapter 15

Basic Desktop Programming


  • How to use the WPF designer
  • How to use controls for displaying information to the user, such as the Label and TextBlock controls
  • How to use controls for triggering events, such as the Button control
  • How to use the controls that enable users of your application to enter text, such as the TextBox control
  • How to use controls that enable you to inform users of the current state of the application and allow the user to change that state, such as the RadioButton and CheckButton controls
  • How to use controls that enable you to display lists of information, such as the ListBox and ComboBox controls
  • How to use panels to lay out your user interfaces


You can find the code downloads for this chapter at on the Download Code tab. The code is in the Chapter 15 download and individually named according to the names throughout the chapter.

The first part of this book has concerned itself with the ins and outs of C#, but now it is time to move away from the details of the programming language and into the world of the graphical user interface (GUI).

Over the past 10 years, Visual Studio has provided the Windows developers with a couple of choices for creating user interfaces: Windows Forms, which is a basic tool for creating applications that target classic Windows, and Windows Presentation Foundations (WPF), which provide a wider ...

Get Beginning Visual C# 2012 Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.