You are previewing Real World Windows 10 Development, Second Edition.
O'Reilly logo
Real World Windows 10 Development, Second Edition

Book Description

Emphasizing XAML and C#, this book provides readers with all the tools, ideas, and inspiration to begin Windows Universal App development for Windows 10.

Real World Windows 10 Development addresses developers who want to break into this market by providing detailed explanations of the various aspects of Universal App development. Written by authors with deep knowledge in Windows 10 universal app development, you will learn how to make the most of the Windows 10 SDK to build applications that can be published on IoT devices, phones, tablets, laptops, desktops, Xbox, HoloLens, and the Surface Hub.

Readers will learn how to:

  • Extend the appeal of their native, web-based, or universal apps with media, shell integration, and inter-app communications
  • Build adaptive user interfaces that scale to the screen dimensions they are displayed on
  • Monitize your apps
  • Introduce mapping
  • What if you already have pre-existing software in the form of native win32 applications or a website? Real World Windows 10 Development tackles this by providing detailed tutorials on the approaches used to leverage your existing code investment.

    Finally, Real World Windows 10 Development provides a step-by-step walk through of the various approaches developers can use to distribute their universal apps.

    In this book, you’ll get:

  • Detailed descriptions of Windows 10 app development
  • Samples emphasizing the use of XAML/C#
  • Adherence to Windows 10 guidelines for successful app acceptance
  • Table of Contents

    1. Cover
    2. Title
    3. Copyright
    4. Dedication
    5. Contents at a Glance
    6. Contents
    7. About the Authors
    8. About the Technical Reviewers
    9. Acknowledgments
    10. Introduction
    11. Chapter 1: The Windows 10 Ethos and Environment
      1. RIP Windows 8
      2. Hello, Windows 10
      3. A Not-So-Brief Introduction
      4. The New All-New Taskbar
      5. Building Windows 10 UWP Apps
        1. Supported Languages
      6. Developing for Windows 10 UWP Apps
        1. Setting Up Your Environment
        2. The Visual Studio IDE
        3. Creating Your First Project
        4. Sidebar: Exploring the App Manifest
        5. Back to Your First Project
        6. Notes on XAML
      7. Summary
    12. Chapter 2: Basic Controls
      1. Setting Up a Project
      2. So Just What Are Controls?
      3. Incorporating Controls
        1. Window
        2. Frame
        3. Page
        4. Button
        5. CalendarDatePicker
        6. TimePicker
        7. AutoSuggestBox
        8. CommandBar
        9. AppBarButton
        10. DatePicker
        11. MenuFlyout
        12. TextBox
        13. PasswordBox
        14. ComboBox
        15. Slider
        16. Image
        17. WebView
        18. Noteworthy Mentions
      4. Summary
    13. Chapter 3: Data Controls
      1. Modifying the Project
        1. Creating a Control Corral Model
        2. Persisting to the File System
        3. Setting Up the Pages
      2. Listing Reservations with ListBox
      3. Viewing Individual Reservations with FlipView
      4. Revisiting AutoSuggestBox
      5. Revisiting ComboBox
      6. Showing Customers with GridView
      7. Displaying Today’s Reservations with ListView
      8. Summary
    14. Chapter 4: Layout and Custom Controls
      1. Layout Controls
        1. Understanding the Layout System
        2. Alignment, Margins, and Padding
        3. The Layout Controls
      2. Building Your Own Controls
        1. User Controls
        2. Templated Controls
        3. Your Own Layout Controls
      3. Summary
    15. Chapter 5: Building an Adaptive Experience
      1. Device Families
      2. Adapting the User Interface
        1. Triggered States
        2. Visual States
        3. XAML Views
      3. Adapting the Code
        1. The ApiInformation Class
      4. Summary
    16. Chapter 6: File IO
      1. Creating the ResumeManager Project
      2. Files
      3. Storage Folders
        1. The Package Install Location
        2. The Isolated Storage Area
        3. RoamingFolder
        4. TemporaryFolder
        5. The User’s Known Folders
        6. External Known Folders
        7. The Downloads Folder
        8. Final Thoughts on Storage via the ApplicationData Class
      4. Using Pickers
      5. Sharing Files with Custom Pickers
      6. Summary
    17. Chapter 7: Working with Media
      1. Creating a New Project
      2. Visualizing Media
        1. Images
        2. Audio
        3. Video
        4. Background Audio
      3. Using WebView to Display Render Media
      4. Summary
    18. Chapter 8: Location and Mapping
      1. Location Awareness
        1. Enabling Location Functionality
        2. Requesting Access to Location Data
        3. Getting the Current Location
        4. More on Permissions
        5. Responding to Location Updates
        6. Geofencing
      2. Mapping
        1. Launching Maps via URI
        2. Adding Maps into Your App
        3. Displaying Streetside Views
        4. Handling Events, User Interaction, and Changes
        5. Working with POIs (Points of Interest)
        6. Geocoding
        7. Displaying Directions
        8. Displaying Routes
      3. Summary
    19. Chapter 9: Background Tasks
      1. Before You Begin
      2. Running in the Background
        1. Defining a Task to Run in the Background
        2. Registering a Background Task
        3. Implementing Triggers
        4. Reporting Progress
        5. Conditions
        6. More on Triggers
        7. Revisiting Background Audio
        8. Monitoring the Contact Store
      3. Background Transfers
      4. Summary
    20. Chapter 10: Shell Integration
      1. Launch Conditions
      2. Windowing
        1. Opening New Windows
        2. Sizing Windows
        3. TitleBar
      3. Lock Screen
      4. The Notification Process
      5. Toast Notifications
        1. Generating Toast Notifications
        2. Adding Images to Toasts
        3. Adding Sound to Toasts
        4. Scheduling Toasts
        5. Responding to Toast Notification Events
        6. Adaptive Toasts
      6. Tile Notifications
        1. Generating Tile Notifications
        2. Presenting Text Content with a Heading
        3. Text-Only Content
        4. Templates for Summaries
        5. Creating a Cleaner Template
        6. Adding Images to Tile Notifications
        7. Scheduling Tile Notifications
      7. Summary
    21. Chapter 11: Communicating Between Apps
      1. Before You Get Started
        1. Changing the Object Model
        2. Applying SplitView to ApplicationHostPage
      2. Communicating Through URI Launching
        1. Launching a Specific App
        2. Launching a URI and Waiting for Results
        3. Querying URI Support
      3. File Launching
      4. Communicating Through Sharing Files (Shared Storage)
      5. Application Services
      6. Sharing Data Between the Apps You Created
      7. Sharing Contracts
        1. Sharing as a Source
        2. Sharing as a Target
      8. Summary
    22. Chapter 12: Leveraging Cortana and Speech
      1. Making Your Program Speak
        1. Using SSML
      2. Recognizing Speech
        1. Constraints and Grammars
      3. Using Cortana
        1. Setting Up for Cortana
        2. Launching Your App in the Foreground with Cortana
      4. Launching Your App in the Background with Cortana
      5. State Management
      6. Deep Linking
      7. Prompting the User
      8. Multi-Command Interactions
      9. The Final Command
      10. Summary
    23. Chapter 13: App Monetization
      1. Selling Your App
        1. App Trial Mode
        2. Licensing Your App (Trial Mode)
        3. Purchasing the App
      2. Selling Within an App
        1. Adding In-App Purchasing to an App
        2. Implementing In-App Purchasing
      3. Summary
    24. Chapter 14: Leveraging Existing Code
      1. Sharing Code
      2. Portable Class Libraries (PCL)
        1. Creating a PCL
      3. Localhost Access
      4. Summary
    25. Chapter 15: Distributing Universal Apps
      1. Registering with the Dev Center
      2. Creating an App Package
        1. Side Loading
        2. Windows Store Distribution
      3. Verifying Your App Package
      4. Submitting Your App
        1. Naming Your App
        2. Selling Details
        3. Advanced Properties
      5. Uploading Your App
        1. Description
        2. Notes to Testers
      6. Getting Your App Certified
      7. Updating Your App
      8. Summary
    26. Index