Windows 8 Apps Revealed: Using XAML and C#

Book description

This 88-page primer unveils the key features of Microsoft's eagerly anticipated Windows 8 operating system. Windows 8 contains Microsoft's revolutionary new application framework for building dynamic and responsive touch-enabled applications that target both desktops and mobile devices.

Experienced author Adam Freeman invites you to take a crash course in Windows 8 development. Using the open standards of XAML and C# he ensures you understand the changes that are being made to Windows development practices and puts you on the right course to creating innovative and elegant applications for this latest evolution of the world’s most successful operating system.

Table of contents

  1. Cover
  2. Title
  3. Copyright
  4. Dedication
  5. Contents at a Glance
  6. Contents
  7. About the Author
  8. About the Technical Reviewer
  9. Acknowledgments
  10. Chapter 1: Getting Started
    1. About This Book
      1. What Do You Need to Know Before You Read This Book?
      2. What Software Do You Need for This Book?
      3. What Is the Structure of This Book?
      4. More About the Example Windows App
      5. Is There a Lot of Code in This Book?
    2. Getting Up and Running
      1. Creating the Project
      2. Exploring the App.xaml File
      3. Exploring the MainPage.xaml File
      4. Exploring the StandardStyles.xaml File
      5. Exploring the Package.appxmanifest File
    3. An Incredibly Brief XAML Overview
      1. Using the Visual Studio Design Surface
      2. Configuring Controls in XAML
      3. Configuring Controls in Code
    4. Running and Debugging a Windows App
      1. Running a Windows App in the Simulator
    5. Summary
  11. Chapter 2: Data, Binding, and Pages
    1. Adding a View Model
    2. Adding the Main Layout
      1. Writing the Code
      2. Adding a Resource Dictionary
      3. Writing the XAML
    3. Running the App
    4. Inserting Other Pages into the Layout
    5. Dynamically Inserting Pages into the Layout
      1. Switching Between Pages
      2. Implementing the Embedded Page
    6. Summary
  12. Chapter 3: AppBars, Flyouts, and Navigation
    1. Adding an AppBar
      1. Declaring the AppBar
      2. Adapting Predefined AppBar Buttons
      3. Creating Custom AppBar Button Styles
      4. Implementing AppBar Button Actions
    2. Creating Flyouts
      1. Creating the User Control
      2. Writing the User Control Code
      3. Adding the Flyout to the App
      4. Creating a More Complex Flyout
    3. Navigating Within a Windows App
      1. Creating the Wrapper
      2. Creating the Other View
      3. Testing the Navigation
    4. Summary
  13. Chapter 4: Views and Tiles
    1. Supporting Views
      1. Responding to View Changes in Code
      2. Responding to View Changes in XAML
      3. Breaking Out of the Snapped View
    2. Using Tiles and Badges
      1. Improving Static Tiles
      2. Creating Live Tiles
      3. Updating Wide Tiles
    3. Applying Badges
    4. Summary
  14. Chapter 5: App Life Cycle and Contracts
    1. Dealing with the App Life Cycle
      1. Correcting the Visual Studio Event Code
      2. Simulating the Life-Cycle Events
      3. Testing the Life-Cycle Events
    2. Adding a Background Activity
      1. Extending the View Model
      2. Displaying the Location Data
      3. Declaring the App Capabilities
      4. Controlling the Background Task
    3. Implementing a Contract
      1. Declaring Support for the Contract
      2. Implementing the Search Feature
      3. Responding to the Search Life-Cycle Event
      4. Testing the Search Contract
    4. Summary
  15. Index

Product information

  • Title: Windows 8 Apps Revealed: Using XAML and C#
  • Author(s): Adam Freeman
  • Release date: December 2012
  • Publisher(s): Apress
  • ISBN: 9781430250357