[...]... Activities The Workflow Runtime Data Binding Summary Index 12 00 12 00 12 01 1 212 12 13 12 15 12 16 12 17 12 17 12 18 12 20 12 20 12 21 12 21 12 21 12 31 1238 12 45 12 46 12 47 12 51 12 51 1253 12 54 12 57 12 60 12 66 12 73 12 78 12 79 xxv ftoc.indd xxv 3/24/08 5:46:08 PM ftoc.indd xxvi 3/24/08 5:46:08 PM Introduction C# is a relatively new language that was unveiled to the world when Microsoft announced the first version of its NET Framework... Types 14 1 14 3 14 4 14 7 14 8 15 0 15 3 15 4 15 5 15 6 15 7 16 6 17 6 17 7 18 2 18 3 18 4 18 4 18 5 18 6 18 7 19 0 19 0 19 1 19 2 19 3 19 5 19 7 19 9 2 01 202 202 xi ftoc.indd xi 3/24/08 5:46:03 PM Contents OOP in Windows Applications Summary Exercises Chapter 9: Defining Classes Class Definitions in C# Interface Definitions System.Object Constructors and Destructors Constructor Execution Sequence 203 206 206 209 209 213 216 218 219 ... 11 38 11 39 11 40 Summary Exercises Chapter 34: Windows Presentation Foundation What Is WPF? WPF for Designers WPF for C# Developers Anatomy of a Basic WPF Application WPF Fundamentals XAML Syntax Desktop and Web Applications The Application Object Control Basics Control Layout Control Styling Triggers Animation Static and Dynamic Resources 11 40 11 41 114 3 11 44 11 45 11 48 11 48 11 60 11 61 116 4 11 64 11 65 11 74... 11 04 11 05 Chapter 33: Introduction to GDI+ 11 07 Overview of Graphical Drawing 11 08 The Graphics Class Disposing of Objects Coordinate System Colors Drawing Drawing Drawing Drawing Lines Using the Pen Class Shapes Using the Brush Class Text Using the Font Class Using Images 11 08 11 09 11 10 11 18 11 19 11 22 11 24 11 28 Drawing with a Texture Brush Double-Buffering 11 31 113 5 Advanced Capabilities of GDI+ 11 38... Exercises 10 46 10 49 10 50 10 52 10 59 10 63 10 66 10 68 10 68 10 70 10 71 1073 10 73 Chapter 32: Networking 10 75 Networking Overview 10 75 Name Resolution Uniform Resource Identifier TCP and UDP Application Protocols Networking Programming Options WebClient WebRequest and WebResponse 10 78 10 80 10 81 10 81 1083 10 84 10 86 xxiii ftoc.indd xxiii 3/24/08 5:46:07 PM Contents TcpListener and TcpClient Summary Exercises 10 96 11 04... Document 10 01 10 01 Working with XML Fragments Generating XML from LINQ to SQL 10 02 10 04 Displaying the Northwind Customer Orders XML Document How to Query an XML Document Using Query Members 10 08 10 09 10 10 xxii ftoc.indd xxii 3/24/08 5:46:07 PM Contents Summary Exercises Part V: Additional Techniques 10 16 10 16 10 17 Chapter 30: Attributes 10 19 What Is an Attribute? Reflection Built-in Attributes 10 19 10 23 10 26... Enumerations Structs Arrays String Manipulation Summary Exercises 43 45 46 46 51 52 53 56 57 59 59 62 66 68 69 70 70 71 75 78 79 81 83 88 89 90 90 93 93 94 96 10 0 10 3 10 3 10 8 11 1 11 8 12 3 12 4 x ftoc.indd x 3/24/08 5:46:03 PM Contents Chapter 6: Functions Defining and Using Functions 12 5 12 6 Return Values Parameters 12 8 13 0 Variable Scope 13 8 Variable Scope in Other Structures Parameters and Return Values versus... 3/24/08 5:45: 21 PM Contents Introduction xxvii Part I: The C# Language 1 Chapter 1: Introducing C# 3 What Is the NET Framework? What’s in the NET Framework? Writing Applications Using the NET Framework What Is C#? Applications You Can Write with C# C# in This Book Visual Studio 2008 Visual Studio 2008 Express Products Solutions Summary 3 4 4 8 8 9 9 10 10 11 Chapter 2: Writing a C# Program 13 The Development... Complete Running the Application Uninstall Summary Exercises Part III: Web Programming Chapter 19 : Basic Web Programming Overview ASP.NET Runtime Creating a Simple Page Server Controls Event Handlers Input Validation State Management 598 599 6 01 602 602 603 604 607 611 612 613 617 617 618 618 619 619 620 6 21 6 21 622 622 622 622 623 625 627 628 628 629 636 637 642 646 Client-Side State Management Server-Side... Development Environments 14 Visual Studio 2008 Visual C# 2008 Express Edition Console Applications The Solution Explorer The Properties Window The Error List Window Windows Forms Applications Summary Chapter 3: Variables and Expressions Basic C# Syntax Basic C# Console Application Structure Variables Simple Types Variable Naming ftoc.indd ix 14 17 18 22 23 23 24 29 31 32 34 36 36 41 3/24/08 5:46:02 PM . 4 What Is C#? 8 Applications You Can Write with C# 8 C# in This Book 9 Visual Studio 2008 9 Visual Studio 2008 Express Products 10 Solutions 10 Summary 11 Chapter 2: Writing a C# Program 13 The. 3/24/08 5:45: 21 PM3/24/08 5:45: 21 PM Beginning Microsoft Visual C# 2008 Introduction xxvii Part I: The C# Language Chapter 1: Introducing C# 3 Chapter 2: Writing a C# Program 13 Chapter 3:. Conversions Using the Convert Commands 10 0 Complex Variable Types 10 3 Enumerations 10 3 Structs 10 8 Arrays 11 1 String Manipulation 11 8 Summary 12 3 Exercises 12 4 ftoc.indd xftoc.indd x 3/24/08 5:46:03