Chapter 1 Getting Started with Windows Presentation Foundation

Similar documents
WPF. Source Module 01: Lesson1

Developing Windows Applications with Microsoft Visual Studio 2010

Windows Presentation Foundation Programming Using C#

Introduction... xxi. Chapter 1: Introducing Visual Basic In Depth... 2

Developing Windows Applications with Microsoft Visual Studio 2010 (MS 10262)

ExecuTrain Course Outline MOC 6460A: Visual Studio 2008: Windows Presentation Foundation

Developing Windows Applications with Microsoft Visual Studio 2010

DEVELOPING WINDOWS APPLICATIONS WITH MICROSOFT VISUAL STUDIO 2010

Windows Presentation Foundation for.net Developers

DE Developing Windows Applications with Microsoft Visual Studio 2010

Windows Presentation Foundation Visual Studio.NET 2008

Visual Studio 2015: Windows Presentation Foundation (using VB.NET Language) Training Course Outline

10262A VB: Developing Windows Applications with Microsoft Visual Studio 2010

Migrate Your Skills to Microsoft.NET Framework 2.0 and 3.0 using Visual Studio 2005 (C#)

Windows Presentation Foundation (WPF)

Introduction p. 1 Who Should Read This Book? p. 2 Software Requirements p. 3 Code Examples p. 3 How This Book Is Organized p. 4 Conventions Used in

Dot Net Framework 4.0: Advanced Microsoft C#.NET Web Development

--Microsoft-- --Windows Phone--

PROGRAMMING WITH THE MICROSOFT.NET FRAMEWORK USING MICROSOFT VISUAL STUDIO 2005 Course No. MS4995A 5 Day PREREQUISITES COURSE OUTLINE

ALPHAPRIMETECH 112 New South Road, Hicksville, NY 11801

Pro XAML with C# From Design to Deployment on WPF, Windows Store, and Windows Phone. Buddy James. Lori Lalonde

Programming in C# for Experienced Programmers

Introduction to Programming Microsoft.NET Framework Applications with Microsoft Visual Studio 2005 (C#)

Apex TG India Pvt. Ltd.

Introduction... xxxvii. Part I:.NET Framework 4.0 and Visual Studio Chapter 1: C#.NET Essentials... 1

Pro Business Applications with Silverlight 4

Introduction to Microsoft.NET Framework Programming using VS 2005 (C#)

Advanced WCF 4.0 .NET. Web Services. Contents for.net Professionals. Learn new and stay updated. Design Patterns, OOPS Principles, WCF, WPF, MVC &LINQ

Applied WPF 4 in Context US $49.99 SOURCE CODE ONLINE

Beginning Silverlight 5 in C #

"Charting the Course... MOC A Developing Data Access Solutions with Microsoft Visual Studio Course Summary

COPYRIGHTED MATERIAL. viii. About the Authors...v Acknowledgments...vii Introduction...xxvii

Windows Presentation Foundation. Jim Fawcett CSE687 Object Oriented Design Spring 2018

Introduction. Part I: Silverlight Fundamentals for ASP.NET Developers 1

Introduction to C++/CLI 3. What C++/CLI can do for you 6 The rationale behind the new syntax Hello World in C++/CLI 13

2310C VB - Developing Web Applications Using Microsoft Visual Studio 2008 Course Number: 2310C Course Length: 5 Days

"Charting the Course to Your Success!" MOC B Programming in C# Course Summary

James Foxall. Sams Teach Yourself. Visual Basic 2012 *24. Hours. sams. 800 East 96th Street, Indianapolis, Indiana, USA

Chapter 13. Additional Topics in Visual Basic The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill

10267A CS: Developing Web Applications Using Microsoft Visual Studio 2010

"Charting the Course... SharePoint 2007 Hands-On Labs Course Summary

Index. Alessandro Del Sole 2017 A. Del Sole, Beginning Visual Studio for Mac,

CHAPTER 1: INTRODUCING C# 3

[MS10553]: Fundamentals of XAML and Microsoft Expression Blend

Microsoft Silverlight 4 Business Application Development

Learn to Behave Extend Your XAML with Behaviors

Introduction to Microsoft.NET Programming Using Microsoft Visual Studio 2008 (C#) Course Overview. Prerequisites. Audience.

NE Fundamentals of XAML and Microsoft Expression Blend

Essentials of Developing Windows Store Apps Using C#

Android App Development

1A Windows Presentation Foundation Explained. Rob Layzell CA Technologies

Developing Data Access Solutions with Microsoft Visual Studio 2010

SECURED PROGRAMMING IN.NET DETAILED TRAINING CONTENT INDUSTRIAL TRAINING PROGRAM ( )

Silverlight Recipes. A Problem-Solution Approach. Apress* Jit Ghosh and Rob Cameron

DOT.NET MODULE 6: SILVERLIGHT

Programming Windows, Sixth Edition

ANDROID SYLLABUS. Advanced Android

20483BC: Programming in C#

The course introduces many of the techniques and technologies employed by modern desktop and enterprise applications, including:

Programming in C#

Road Map for Essential Studio 2010 Volume 1

Course Description. Audience. Module Title : 20483B: Programming in C# Duration : 5 days. Course Outline :: 20483B ::

2A The CA Plex.NET Client Generator. Rob Layzell CA Technologies

Telerik Corp. Test Studio Standalone & Visual Studio Plug-In Quick-Start Guide

Developing Rich Internet Applications Using Microsoft Silverlight 4

CHAPTER 1: INTRODUCTION TO THE IDE 3

Index LICENSED PRODUCT NOT FOR RESALE

DOT NET SYLLABUS FOR 6 MONTHS

C++/CLI in Action NISHANT SIVAKUMAR MANNING. Greenwich (74 w. long.)

HCIM SUMMER WORKSHOP Introduction to C#

"Charting the Course... MOC A Introduction to Web Development with Microsoft Visual Studio Course Summary

Road Map for Essential Studio 2011 Volume 4

HPE WPF and Silverlight Add-in Extensibility

Programming in C# (20483)

2559 : Introduction to Visual Basic.NET Programming with Microsoft.NET

Building Next Generation GUIs using Microsoft Expression Interactive Designer

Fundamentals of XAML and Microsoft Expression Blend

Learn to create Window applications using the C# language with Visual Studio 2012.

This module reviews the core syntax and features of the C# programming language. It also provides an introduction to the Visual Studio 2012 debugger.

CHANNEL9 S WINDOWS PHONE 8.1 DEVELOPMENT FOR ABSOLUTE BEGINNERS

Index. Application programming interface (API), 38. Binary Application Markup Language (BAML), 4

University of West Bohemia. Faculty of Applied Sciences. Department of Computer Science and Engineering MASTER THESIS

Developing Rich Internet Applications Using Microsoft Silverlight 4

Microsoft ASP.NET Whole Course Syllabus upto Developer Module (Including all three module Primary.NET + Advance Course Techniques+ Developer Tricks)

Developing Microsoft.NET Applications for Windows (Visual Basic.NET)

Upgrading to Windows Server 2008

STARCOUNTER. Technical Overview

C# Programming: From Problem Analysis to Program Design. Fourth Edition

Chapters and Appendix F are PDF documents posted online at the book s Companion Website (located at

Module Title : 20484C:Essentials of Developing Windows Store Apps Using C#

C# Syllabus. MS.NET Framework Introduction

Introduction to Web Development with Microsoft Visual Studio 2010

MICROSOFT VISUAL STUDIO 2010 Overview

About This Book... ix About The Author... xiii Acknowledgments...xv Chapter 1: Why Custom Tasks... 1

VB.NET. Exercise 1: Creating Your First Application in Visual Basic.NET

XAML. Chapter 2 of Pro WPF : By Matthew MacDonald Assist Lect. Wadhah R. Baiee. College of IT Univ. of Babylon Understanding XAML

WPF Performance Tuning. Kiril Matev Technical Evangelist

Level: M.Ed. Credit Hour: 3 (2+1) Semester: Third Teaching Hour: 80(32+48)

Microsoft VB. TS Windows Apps Dev Microsoft.NET Framework 4. Download Full Version :

WPF and MVVM Study Guides

Transcription:

Table of Contents Chapter 1 Getting Started with Windows Presentation Foundation 1 Exploring the New Features of WPF 4.0... 2 New WPF Controls for Business Applications... 3 Enhanced Support for WPF and Silverlight Applications... 3 Support for Touch-Enabled Applications... 3 Support for Easing Functions to Enhance Animations... 3 VSM to Enhance Controls Appearances... 4 Selection and Caret Brushes to Change Color... 4 Enhanced Support for WPF Text Rendering Stack... 4 Enhanced XBAPs... 5 Exploring the WPF 4.0 Architecture... 5 The PresentationFramework Component... 6 The PresentationCore Component... 6 The WindowsBase Component... 6 MIL or Milcore... 6 Exploring WPF 4.0 Class Hierarchy... 6 The System.Windows.Threading.DispatcherObject Class... 7 The System.Windows.DependencyObject Class... 8 The System.Windows.Freezable Class... 8 The System.Windows.Media.Visual Class... 8 The System.Windows.UIElement Class... 9 The System.Windows.FrameworkElement Class... 9 Exploring the WPF 4.0 Application Model... 10 The Application Class... 10 Types of WPF Applications... 11 Exploring the WPF 4.0 Designer... 17 Solution Explorer... 18 The Properties Window... 18 The Toolbox... 19 The Design View... 19 The XAML View... 22 The Split View Bar... 22 The Tag Navigator... 23 iii

WPF 4.0 in Simple Steps The Document Outline Window... 25 Compiling and Executing WPF 4.0 Applications... 25 Summary... 26 Chapter 2 Working with XAML in WPF 27 Exploring the XAML Element Tree... 28 Exploring XAML Object Elements... 29 Creating XAML Elements in the XAML View... 29 Creating XAML Elements in the Code-Behind File... 31 Exploring XAML Attributes... 32 Setting Properties Through the Attribute Syntax... 32 Setting Properties Through the Property Element Syntax... 33 Exploring XAML Namespaces... 33 Exploring Markup Extensions... 35 Summary... 36 Chapter 3 Working with WPF Controls and Dialog Boxes 37 Exploring WPF 4.0 Controls... 38 Container Controls... 38 Simple Controls... 45 Content Controls... 53 HeaderedContent Controls... 59 Items Controls... 61 HeaderedItems Controls... 65 Date Display and Selection Controls... 68 Data Display Controls... 71 Miscellaneous Controls... 75 Exploring Dialog boxes in WPF... 79 MessageBox... 79 SaveFile... 81 OpenFile... 83 Print... 85 Exploring Interoperability between Windows Forms and WPF 4.0... 88 Hosting a Windows Forms Control in a WPF Application... 89 Hosting a WPF Control in a Windows Forms Application... 90 Summary... 92 iv

Table of Contents Chapter 4 Working with Dependency Properties and Routed Events in WPF 93 Exploring Dependency Properties... 94 The DependencyProperty Class... 95 Property Value Inheritance... 96 Precedence of Dependency Property Values... 96 Callbacks for Dependency Properties... 99 Dependency Property Metadata... 101 Custom Dependency Properties... 102 Exploring Attached Properties... 107 Exploring Routed Events... 111 Handlers for Routed Events... 112 Routing Strategies... 113 Custom Routed Events... 117 Exploring Attached Events... 121 Exploring Lifetime Events... 122 Application Lifetime Events... 123 Window Lifetime Events... 123 Summary... 124 Chapter 5 Working with WPF Resources, Styles, Templates, Triggers, and Commands 125 Exploring WPF Resources... 126 Working with Static Resources... 127 Working with Dynamic Resources... 128 Exploring Styles in WPF... 130 Setting Styles through Resources... 131 Extending an Existing Style... 132 Exploring Templates in WPF... 133 The ControlTemplate Template... 133 The DataTemplate Template... 135 Exploring Triggers in WPF... 136 The Property Trigger... 137 Event Triggers... 138 Multi Triggers... 139 Data Triggers... 140 Exploring Commands in WPF... 142 v

WPF 4.0 in Simple Steps Command Sources... 143 Command Targets... 143 Command Binding... 143 Command Usage... 143 Summary... 144 Chapter 6 Working with Typography in WPF 145 ExploringTypography Features in WPF 4.0... 146 Text Rendering by Using the Microsoft ClearType Technology... 146 Support for the OpenType Font Format and International Fonts... 146 Enhanced Text Application Programming Interfaces (APIs)... 147 Exploring Important Classes of Typography... 147 The TextDecoration Class... 147 The Typography Class... 148 The Transform Class... 149 The TextEffect Class... 151 The BitMapEffect Class... 151 Working with Typography... 152 Displaying Special Characters... 152 Adding Decorations to Text... 154 Wrapping Text... 156 Trimming Text... 157 Transforming Text... 159 Animating Text... 160 Adding Shadows to Text... 162 Applying the Blur Effect to Text... 164 Summary... 164 Chapter 7 Working with Documents in WPF 165 Exploring Types of WPF 4.0 Documents... 166 Fixed Documents... 166 Flow Documents... 171 Exploring Serialization and Deserialization of WPF 4.0 Documents... 183 Summary... 184 vi

Table of Contents Chapter 8 Working with Graphics in WPF 185 Exploring 2-D Graphics in WPF 4.0... 186 Working with 2-D Shapes... 186 Using Basic 2-D Shapes... 187 Working with 2-D Geometries... 191 Working with 2-D Brushes... 199 Working with 2-D Drawings... 209 Exploring 3-D Graphics in WPF 4.0... 209 3-D Scenes... 210 Cameras... 210 Lights... 213 Creation of a 3-D Scene... 215 Summary... 216 Chapter 9 Working with Animations and Multimedia in WPF 217 Exploring Animation in WPF 4.0... 218 Exploring Essentials of Animation in WPF 4.0... 218 Exploring Types of Animations... 225 Exploring Multimedia in WPF 4.0... 237 Images... 237 Audio and Video... 242 Summary... 246 Chapter 10 Data Binding in WPF 247 Introducing the Binding Class... 248 Introducing the Components of WPF Data Bindings... 249 Understanding Data Binding Declarations... 250 Declaring Data Binding in the XAML Code... 250 Declaring Data Binding in the Code-Behind File... 252 Working with Data Binding Sources... 253 Binding to CLR Objects... 253 Binding to DependencyObject Objects... 258 Binding to an ADO.NET Object... 260 Binding to an XML Object... 263 Exploring Data Flow Directions... 266 Understanding the OneTime Binding Mode... 266 vii

WPF 4.0 in Simple Steps Understanding the OneWay Binding Mode... 267 Understanding the TwoWay Binding Mode... 267 Understanding the OneWayToSource Binding Mode... 267 Implementing Data Validation... 268 Summary... 272 Chapter 11 Working with Animations and Multimedia in WPF 273 Exploring Deployment Technologies... 274 The Windows Installer Deployment Technology... 274 The ClickOnce Deployment Technology... 275 The XCopy Deployment Technology... 275 Deploying WPF Standalone Applications... 276 Deploying XBAPs... 277 Summary... 279 viii