Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 7: Application Bar > Adding an Application Bar to a Windows Phone Appli...

Adding an Application Bar to a Windows Phone Application

Windows Phone provides two types of Application Bars for use with phones apps: a global bar and a local bar. The only way to define a global Application Bar is inside the App.xaml. Once defined, it can be added to any page within the Windows Phone application with a single line of XAML code. On the other hand, there are two ways to define a local Application Bar and add it to a particular application page:

  • Using XAML
  • Using managed code (for example, C# or Visual Basic)

You'll get to try both methods in this chapter whenyou build an Application Bar that provides simple functionality, such as asking for a person's name and then reacting as if that name has been saved to the database or the cloud storage. Regardless of the approach you choose, and regardless of whether you are building a local or a global Application Bar, there is a preparatory step you should take before you can properly display and use it. That step involves adding images for your Application Bar buttons to project resources, which we cover in the next section.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint