This sample enables you to test the different app bar properties, such as opacity, color, and mode. As you click the user interface, changes are made to the app bar dynamically, so that you can see how the different properties work and how they interact with each other. This sample contains app bar code for a plain page, a pivot page, and a panorama page. For more information, see App bar for Windows Phone.

To run this sample, you must have Windows Phone SDK 7.1 installed. To get started, go to the Windows Phone Dev Center.

To run the sample

  1. Double-click sdkAppBar.sln to open the solution.

  2. On the Build menu (or the Debug menu in Visual Studio 2010 Express for Windows Phone), click Build Solution. (Ctrl+Shift+B)

  3. On the Debug menu, click Start Debugging. (F5)

  4. Click the link for the page type you are interested in.

  5. Experiment with the different properties by clicking the radio buttons. Some properties are easier to test together. For example, it is easier to test the opacity property with the background property set to accent.

  6. Test the icon buttons by clicking each one and confirming that the message box appears.

  7. Test the menu items by clicking each one and confirming that the message box appears.

  8. On the Debug menu, click Stop Debugging. (F5)

Note:

This sample is packaged as a Windows Phone 7.5 project. It can be converted to a Windows Phone 8 project, by changing the target Windows Phone OS version of the project. To create a Windows Phone 8 project, you must be running the Windows Phone SDK 8.0 on Visual Studio 2012. You can download the latest version of the SDK from http://dev.windowsphone.com/downloadsdk.

To convert the sample to a Windows Phone 8 project:

  1. Double-click the .sln file to open the solution in Visual Studio.

  2. Right-click the project in the Solution Explorer and select Properties. This opens the Project Properties window.

  3. In the Application tab of the Project Properties window, select Windows Phone OS 8.0 from the Target Windows Phone OS Version dropdown. A dialog will appear asking if you want to upgrade this project to Windows Phone OS 8.0.

  4. Select Yes to upgrade the project.