XAML in a Nutshell


When Microsoft releases Windows Vista, the new operating system will support applications that employ graphics now used by computer games—clear, stunning, and active. The cornerstone for building these new user interfaces is XAML ("Zammel"), the XML-based markup language that works with Windows Presentation Foundation (WPF), Vista's new graphics subsystem.

An acronym for Extensible Application Markup Language, XAML offers a wealth of new controls and elements with exciting ...

See more details below
BN.com price
(Save 21%)$29.99 List Price
Other sellers (Paperback)
  • All (19) from $2.60   
  • New (10) from $10.76   
  • Used (9) from $2.60   
Sending request ...


When Microsoft releases Windows Vista, the new operating system will support applications that employ graphics now used by computer games—clear, stunning, and active. The cornerstone for building these new user interfaces is XAML ("Zammel"), the XML-based markup language that works with Windows Presentation Foundation (WPF), Vista's new graphics subsystem.

An acronym for Extensible Application Markup Language, XAML offers a wealth of new controls and elements with exciting capabilities, including animation and rendering of 3D graphics. Windows developers are already jazzed by the possibilities of using XAML for fixed and flow format documents like PDF and HTML, 2D and 3D vector-based graphics, form development, animation, audio and video, transparent layering, and a lot more. Many feel that XAML will eliminate the need for multiple file formats or plug-ins (read: Flash), while lowering development costs and reducing time to market.

The problem is, most developers don't know XAML. While it is fairly easy to understand, you still need a quick guide to bring you up to speed before Vista's release, and that's where this book's simple, no nonsense approach comes in.

XAML in a Nutshell covers everything necessary to design user interfaces and .NET applications that take advantage of WPF. Prerequisites such as Microsoft's new unified build system, MSBuild, and core XAML constructs and syntax—including shortcuts—are all presented with plenty of examples to get you started. The Core XAML Reference section lets you dig even deeper into syntax rules and attributes for all XAML elements with a series of quick-reference chapters. This section divides XAML elements into logical categories of elements, controls, shapes and geometry, layout, animations, and transformations for easy reference.

XAML in a Nutshell helps you learn, firsthand, how to use this XML-based markup language to implement the new generation of user interface graphics. As one reviewer noted, "Strong code examples and an efficient, conversational style take the tedium out of learning XAML and make the subject understandable—even interesting."

Read More Show Less

Product Details

  • ISBN-13: 9780596526733
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 3/28/2006
  • Series: In a Nutshell (O'Reilly) Series
  • Edition number: 1
  • Pages: 306
  • Product dimensions: 6.00 (w) x 9.00 (h) x 0.73 (d)

Meet the Author

Lori MacVittie is currently a Senior Technology Editor with Network Computing Magazine. In past lives she has been a software developer, a network administrator, and an enterprise architect specializing in web-based technologies. Through the course of her career she has nearly coded her way through the alphabet, starting with Apple BASIC, hitting "L" for LISP while consulting for Autodesk, and is currently on the letter "Y". Lori holds an M.S. in Computer Science from Nova Southeastern University, and lives with her husband and children in the technological mecca of the midwest, Green Bay, Wisconsin.

Read More Show Less

Table of Contents

Who Should Read This Book;
What This Book Covers;
Conventions Used in This Book;
Using Code Examples;
Comments and Questions;
Safari® Enabled;
Part I: Introducing XAML;
Chapter 1: Introducing XAML;
1.1 The Benefits of XAML;
1.2 What XAML Is Not;
1.3 XAML Development Resources;
Chapter 2: Getting Started with XAML;
2.1 XAML Prerequisites;
2.2 Defining XAML Applications;
2.3 Building XAML Applications;
2.4 XAML Applications and Visual Studio;
Part II: XAML Concepts;
Chapter 3: The Basics of XAML;
3.1 Core XAML Syntax;
3.2 Elements;
3.3 Attributes;
3.4 Attached Properties;
3.5 Binding Properties;
3.6 codebehind;
Chapter 4: Layout and Positioning;
4.1 StackPanel and DockPanel;
4.2 Using Width and Alignment;
4.3 Margins and Padding;
4.4 Grid;
4.5 Absolute Positioning;
Chapter 5: Resources;
5.1 Using Resources;
5.2 Using Styles;
5.3 Triggers;
Chapter 6: Storyboards and Animations;
6.1 Storyboards;
6.2 Controlling Animations;
6.3 Animation Using Key Frames;
Part III: Core XAML Reference;
Chapter 7: Elements;
Chapter 8: Controls;
8.1 Base Control Reference;
8.2 Common Event Reference;
8.3 Core Control Reference;
Chapter 9: Shapes and Geometry;
Chapter 10: Layout;
Chapter 11: Animations and Transformations;
Chapter 12: Events;
12.1 Routing Strategies;
12.2 Event Argument Reference;
12.3 Event Reference;
Part IV: Appendixes;
Appendix A: System.Windows.Controls;
Appendix B: System.Windows.Documents;
Appendix C: System.Windows.Shapes;
Appendix D: System.Windows;
Appendix E: System.Windows.Media;
Appendix F: System.Windows.Input.ApplicationCommands;
Appendix G: Predefined Colors;
Appendix H: XAML Interface in Code;
About the Author;

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation


  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing 1 Customer Reviews
  • Anonymous

    Posted May 7, 2006


    Are you a .NET developer and/or user-interface designer that is familiar with HTML and the basics of XML? If you are, then this book is for you! Author Lori MacVittie, has done an outstanding job of writing a book that gives the reader a broader sense of the XAML market. MacVittie, begins by providing you with a quick introduction to XAML and includes a list of references to tools available for developing XAML applications. Then, she details the system prerequisites and basics necessary to begin developing and building XAML applications. The author continues by describing the core XAML syntax and delves into the types of elements used to create XAML applications. Next, she details how to position individual elements using a variety of techniques, including panels and absolute positioning. Then, the author provides an overview of resources, focusing on the use of global resources to create a customized look and feel for your interface. She continues by detailing the mechanisms available for animating XAML elements. Next, she details and provides examples for the basic elements used within XAML, including Brush and Pen, ListItem, and elements used for text decoration, such as Inline, Bold, and Italic. The author continues by detailing the control elements available within XAML, such as Button, CheckBox, ImageViewer, and Expander. Then, she explains the differences between shape and geometry classes and details the Shape and Geometry elements available within XAML. Next, she details the XAML elements used to lay out user interfaces such as Grid and Panel, and describes supporting elements such as Trigger, Style, and Border. The author continues by detailing the types of animations and transformations available to XAML elements. Finally, she explains the WPF event system and details the events available to XAML elements. This most excellent book gives the reader a quick reference to XAML with examples. In other words, this book provides documentation of all core components and presents detailed discussions on features such as animation, resources, and layout that will jump-start you on your way to becoming a XAML developer.

    Was this review helpful? Yes  No   Report this review
Sort by: Showing 1 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)