The command framework in WPF provides a set of powerful tools that let developers build more intelligent user interfaces.
by Rich Quackenbush
May 13, 2008
indows Presentation Foundation (WPF) not only lets you do new things, it lets you do familiar things in new ways. As we're all developers, rather than going through the background information, this article just dives right in with an example and works from there. Here's a simple user interface—a typical window with a ListBox and a menu (see Figure 1).
Figure 1. Typical Simple Window: Here's a simple window example that contains a ListBox and a Delete menu.
In this example, you want to make sure that users have selected a customer from the list before they can click the Delete menu. How many times have you added this sort of code to one of your Windows applications?
It's quick, easy and you get access to all the articles on DevX.
This registration/login is to allow you to read articles on devx.com. Already a member?
To become a member of DevX.com create your Member Profile by completing the form below. Membership is free!