Book description
Reimagined for full-screen and touch-optimized apps, Windows 8 provides a platform for reaching new users in new ways. In response, programming legend Charles Petzold is rewriting his classic Programming Windows—one of the most popular programming books of all time—to show developers how to use existing skills and tools to build Windows 8 apps.
Programming Windows, Sixth Edition focuses on creating
Windows 8 apps accessing the Windows Runtime with XAML and C#. The
book also provides C++ code samples. The Sixth Edition is organized
in two parts:
Part I, “Elementals,” begins with the interrelationship between code and XAML, basic event handling, dynamic layout, controls, templates, asynchronous processing, the application bar, control customization, and collections. You should emerge from Part I ready to create sophisticated page-oriented collection-based user interfaces using the powerful ListView and GridView controls.
Part II, “Specialties,” explores topics you might not need for every program but are essential to a well-rounded education in Windows 8. These include multitouch, bitmap graphics, interfacing with share and search facilities, printing, working with the sensors (GPS and orientation), text, obtaining input from the stylus (including handwriting recognition), accessing web services, calling Win32 and DirectX functions, and bringing your application to the Windows 8 app store.
Table of contents
- Programming Windows®, Six Edition
- Introduction
-
I. Elementals
- 1. Markup and Code
- 2. XAML Syntax
- 3. Basic Event Handling
-
4. Presentation with Panels
- The Border Element
- Rectangle and Ellipse
- The StackPanel
- Horizontal Stacks
- WhatSize with Bindings (and a Converter)
- The ScrollViewer Solution
- Layout Weirdness or Normalcy?
- Making an E-Book
- Fancier StackPanel Items
- Deriving from UserControl
- Creating Windows Runtime Libraries
- The Wrap Alternative
- The Canvas and Attached Properties
- The Z-Index
- Canvas Weirdness
- 5. Control Interaction
- 6. WinRT and MVVM
-
7. Asynchronicity
- Threads and the User Interface
- Working with MessageDialog
- Callbacks as Lambda Functions
- The Amazing await Operator
- Cancelling an Asynchronous Operation
- Approaches to File I/O
- File Pickers and File I/O
- Handling Exceptions
- Consolidating Async Calls
- Streamlined File I/O
- Application Lifecycle Issues
- Your Own Asynchronous Methods
-
8. App Bars and Popups
- Implementing Context Menus
- The Popup Dialog
- Application Bars
- The Application Bar Button Style
- Inside the Segoe UI Symbol Font
- App Bar CheckBox and RadioButton
- An App Bar for a Note Pad
- Introducing XamlCruncher
- Application Settings and View Models
- The XamlCruncher Page
- Parsing the XAML
- XAML Files In and Out
- The Settings Dialog
- Beyond the Windows Runtime
- 9. Animation
-
10. Transforms
- A Brief Overview
- Rotation (Manual and Animated)
- Visual Feedback
- Translation
- Transform Groups
- The Scale Transform
- Building an Analog Clock
- Skew
- Making an Entrance
- Transform Mathematics
- The Composite Transform
- Geometry Transforms
- Brush Transforms
- Dude, Where’s My Element?
- Projection Transforms
- Deriving a Matrix3D
-
11. The Three Templates
- Data in a Button
- Making Decisions
- Collection Controls and the Real Use of DataTemplate
- Collections and Interfaces
- Tapping and Selecting
- Panels and Virtualizing Panels
- Custom Panels
- The Item Template Bar Chart
- The FlipView Control
- The Basic Control Template
- The Visual State Manager
- Using generic.xaml
- Template Parts
- Custom Controls
- Templates and Item Containers
-
12. Pages and Navigation
- Screen Resolution Issues
- Scaling Issues
- Snap Views
- Orientation Changes
- Simple Page Navigation
- The Back Stack
- Navigation Events and Page Restoration
- Saving and Restoring Application State
- Navigational Accelerators and Mouse Buttons
- Passing and Returning Data
- Visual Studio Standard Templates
- View Models and Collections
- Grouping the Items
-
II. Specialties
-
13. Touch, Etc.
- A Pointer Roadmap
- A First Dab at Finger Painting
- Capturing the Pointer
- Editing with a Popup Menu
- Pressure Sensitivity
- Smoothing the Tapers
- How Do I Save My Drawings?
- Real and Surreal Finger Painting
- A Touch Piano
- Manipulation, Fingers, and Elements
- Working with Inertia
- An XYSlider Control
- Centered Scaling and Rotation
- Single-Finger Rotation
- 14. Bitmaps
- 15. Going Native
- 16. Rich Text
- 17. Share and Print
- 18. Sensors and GPS
- 19. Pen (Also Known as Stylus)
-
13. Touch, Etc.
- Index
- About the Author
- Copyright
Product information
- Title: Programming Windows®, Six Edition
- Author(s):
- Release date: January 2013
- Publisher(s): Microsoft Press
- ISBN: 9780735671751
You might also like
book
Windows System Programming Third Edition
"If you're a systems-level 32-bit or 64-bit Windows developer, whether using the Windows API directly or …
book
3D Programming for Windows®
The Windows Presentation Foundation is a key component of .NET Framework 3.0, which is a part …
book
Programming Windows®, Fifth Edition
“Look it up in Petzold” remains the decisive last word in answering questions about Windows development. …
book
Windows Forms Programming in C#
Praise for Windows Forms Programming in C# “Chris may have a strong affinity for semi-colons, but …