Session 3: Introducing Windows Presentation Foundation 21 (continued) Area Explanation Visuals Visual objects are the building blocks of the Windows Presentation Foundation rendering system. The visual layer is the Windows Presentation Foundation equivalent to GDI. 3-D graphics The System.Windows.Media.Media3D namespace defines 3-D graphics primitives, transformations, and animations that can be used to create 3-D controls and graphics. Text WPF introduces many new text-related features including hardware- accelerated rendering, subpixel-accurate positioning, integrated international support, and integrated font-embedding support. 22 Session 3: Introducing Windows Presentation Foundation Demonstration 5: Creating 2-D Content In this demonstration, you will see how to create 2-D content by using Windows Presentation Foundation. Key Point The key point of this demonstration is: • By using the graphics objects in XAML, you can easily create graphical content in a XAML application. Session 3: Introducing Windows Presentation Foundation 23 Using Data Binding Data binding is the process that establishes a connection between the application UI and business logic. A typical use of data binding is to place data into forms or other UI controls. In Windows Presentation Foundation, this concept is expanded to include the binding of a broad range of properties to a variety of data sources. You can bind to a variety of data sources, including: • Extensible Markup Language (XML)–encoded data. • Structured Query Language (SQL)–based databases. • Data objects. Windows Presentation Layer provides four basic types of data-binding: • One-time. The property is initialized from the data source but does not change after that. • One-way. The property is initialized from the data source and is automatically updated whenever the value in the data source changes, but changes to the property are not propagated back to the source. 24 Session 3: Introducing Windows Presentation Foundation • Two-way. The property is initialized from the data source and is automatically updated whenever the value in the data source changes. If the user changes the value of the property, the corresponding value in the data source is updated. This type of binding is appropriate for forms or other fully interactive UI scenarios. • One-way-to-source. This is the reverse of one-way binding; one-way-to-source binding updates the source when the target changes. Most properties default to one-way binding, but some dependency properties—for example, the user-editable controls such as the Text property of TextBox—default to two-way binding. You can determine whether a dependency property binds one way or two ways by default by getting the property metadata of the property by using GetMetadata and then checking the Boolean value of the BindsTwoWayByDefault property. Each binding must have these four components: • Binding target object. The UI element to bind the source to, such as a TextBox or ListBox control. • Target property. The target property must be a dependency property. Dependency properties are properties that are registered with the Windows Presentation Foundation dependency property system. Most properties of UIElements properties are dependency properties, and dependency properties, except read-only properties, support data binding by default. • Binding source. The source of the data. This is defined by using the DataContext property on a parent element or by specifying the binding source on individual binding declarations. • Path. A path to the value in the binding source to use. Session 3: Introducing Windows Presentation Foundation 25 Demonstration 6: Implementing XAML and Data Binding In this demonstration, you will see how you can implement data binding by using XAML. Key Point The key point of this demonstration is: • To enable data binding in XAML, you must configure: • Binding source. • Binding target object. • Target property. • Path. 26 Session 3: Introducing Windows Presentation Foundation Session Summary Windows Presentation Foundation provides a new model and tools for developers to build client applications that combine advanced UI elements and provide easy access to content from a variety of sources. This session provides an overview of how to create applications by using Windows Presentation Foundation. Session 3: Introducing Windows Presentation Foundation 27 Next Steps This session includes sample projects excerpted from Applications = Code + Markup: A Guide to the Microsoft® Windows® Presentation Foundation, by Charles Petzold. Published by Microsoft Press. For more information, see http://www.microsoft.com/MSPress/books/6476.asp. 28 Session 3: Introducing Windows Presentation Foundation Questions and Answers Session 4: Introducing the Windows Vista APIs Table of Contents Session Overview 1 Overview of the Windows Vista APIs 2 Developing Applications by Using the Windows RSS Platform 11 Querying the Windows Search Engine 19 Session Summary 25 Next Steps 26 Questions and Answers 27 Clinic Evaluation 28 Information in this document, including URL and other Internet Web site references, is subject to change without notice. Unless otherwise noted, the example companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted herein are fictitious, and no association with any real company, organization, product, domain name, e-mail address, logo, person, place, or event is intended or should be inferred. Complying with all applicable copyright laws is the responsibility of the user. Without limiting the rights under copyright, no part of this document may be reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of Microsoft Corporation. The names of manufacturers, products, or URLs are provided for informational purposes only and Microsoft makes no representations and warranties, either expressed, implied, or statutory, regarding these manufacturers or the use of the products with any Microsoft technologies. The inclusion of a manufacturer or product does not imply endorsement of Microsoft of the manufacturer or product. Links are provided to third party sites. Such sites are not under the control of Microsoft and Microsoft is not responsible for the contents of any linked site or any link contained in a linked site, or any changes or updates to such sites. Microsoft is not responsible for webcasting or any other form of transmission received from any linked site. Microsoft is providing these links to you only as a convenience, and the inclusion of any link does not imply endorsement of Microsoft of the site or the products contained therein. Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this document. Except as expressly provided in any written license agreement from Microsoft, the furnishing of this document does not give you any license to these patents, trademarks, copyrights, or other intellectual property. © 2006 Microsoft Corporation. All rights reserved. Microsoft, Microsoft Press, Aero, BizTalk, ClearType, Expression, IntelliSense, Internet Explorer, MSDN, MSN, Segoe, Tahoma, Visual Basic, Visual C#, Visual Studio, Visual Web Developer, Windows, Windows Media, Windows Server, Windows Vista, and WinFX are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. The names of actual companies and products mentioned herein may be the trademarks of their respective owners. [...]... to query Microsoft Windows Search Objectives After completing this session, you will be able to: • Describe some of new API features available in Windows Vista • Describe how to develop an RSS reader by using the Windows Vista API • Describe how to query Microsoft Windows Search by using the Windows Vista API 2 Session 4: Introducing the Windows Vista APIs Overview of the Windows Vista APIs Introduction... which Windows Vista provides new or enhanced APIs is for managing multimedia Microsoft Media Foundation is the next generation multimedia platform and infrastructure for Microsoft Windows The first release of Media Foundation in Windows Vista focuses on content protection, audio and video quality, and interoperability for digital rights management (DRM) Windows Vista provides new features for interacting... behalf by the system when they fail Session 4: Introducing the Windows Vista APIs 9 New Features in Device Management APIs Windows Vista provides new features for interacting with external devices by exposing the following APIs and services: • The Windows Sideshow Platform API is the new auxiliary display platform introduced in Windows Vista, allowing instant access to PC data, even in hibernate mode... features in Windows and by unifying volume management and hardware redundant array of independent disks (RAID) management under a single API • Windows Vista Explorer Property System is a rich and extensible propertydescription system that provides information about properties to Windows Vista Explorer • OLE DB Provider for Windows Search can be used to issue queries against the Windows Vista search... Introducing the Windows Vista APIs New Features in Windows Management APIs Windows Vista also provides new features for managing Windows by exposing the following services and APIs: • Windows Remote Management (WinRM) is Microsoft’s implementation of the WS-Management public standard protocol for enterprise management The WS-Management protocol, which is SOAP based, provides a common way for systems to... 7,000 new native APIs for Windows developers in Windows Vista These new APIs enable a broad range of new features including new multimedia APIs, new file services APIs that include the new integrated search capability, and new Windows and device management APIs Many of the new Windows Vista APIs are not exposed by the managed framework This presents some challenges for managed code developers because... Management provides the ability for client computers to run applications based on Rights Management technologies The Rights Management client is included with Windows Vista, so a separate download is no longer required 7 8 Session 4: Introducing the Windows Vista APIs • The Task Scheduler API version 2.0, included with Windows Vista and Windows Server code-named “Longhorn” enables performing automated tasks... last release, and it includes documentation and samples for many new features, including player control, skins, plug-ins, and more 6 Session 4: Introducing the Windows Vista APIs New Features in File Services Windows Vista also provides new features for interacting with files on a computer by exposing the following services • Common Log File System (CLFS) provides high-performance persistent log services... Introducing the Windows Vista APIs 1 Session Overview Introduction In addition to providing support for the new features in NET Framework 3.0, Microsoft® Windows Vista also provides many enhanced and new application programming interfaces (APIs) that can be used by developers when creating applications This session provides a brief overview of these new APIs and then provides more detailed information on... • Ink Analysis APIs The Tablet PC platform has added new Ink Analysis APIs for improved parsing and recognition of digital ink and a COM version of the RealTimeStylus API Session 4: Introducing the Windows Vista APIs 11 Developing Applications by Using the Windows RSS Platform Introduction Really Simple Syndication (RSS) has become a popular means to monitor information from a variety of Web sources . using the Windows Vista API. • Describe how to query Microsoft Windows Search by using the Windows Vista API. 2 Session 4: Introducing the Windows Vista APIs Overview of the Windows Vista APIs. against the Windows Vista search engine. Session 4: Introducing the Windows Vista APIs 7 New Features in Windows Management APIs Windows Vista also provides new features for managing Windows. • Windows Vista Explorer Property System is a rich and extensible property- description system that provides information about properties to Windows Vista Explorer. • OLE DB Provider for Windows