Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
There are two steps to writing code that reacts to Application Bar events:
Let's start with the Add button, which you'll wire up in the next section.
Visual Studio 2010 has made adding both glue code and a worker function virtually a two-keystroke procedure. Let's see how easy it is to create an eventhandler for the Add button on your Application Bar using a couple of Visual Studio 2010 shortcuts. This demo assumes that you have already created the Application Bar via managed code (not XAML) by following the steps in the “Adding an Application Bar Using Managed Code”section earlier in this chapter.