Beginning WPF 4.5 by Full Example

Beginning WPF 4.5 by Full Example C#

C# Version PDF/EPUB

This book will quickly show you (by full example) how to create fully functional WPF applications using C#, XAML, and Visual Studio 2010 or 2012, SQL Server 2012, LINQ, Entity Framework, and the DataGrid. The examples in this book will include every single line of code that is required to execute. No assumptions will be made. The decision to write this book came from the need and frustration with finding real usable solutions. The purpose of this book is to “Learn by Full Example”. This is accomplished by eliminating lengthy useless explanations. Most developers prefer to learn by coding and not by reading boring long and drawn out text. If you need more details at any point, then refer to Microsoft's MSDN website. There you will find all the Microsoft detailed references. The goal is to save the next person from this same frustration. Most real world .NET development projects do not allow a developer to click wizards and create an application, based on requirements, by the private or government sector. In order to be a professional .NET developer in these situations one must be an expert with all aspects of code in WPF. That is with the language you are programming, the declarative markup code, and the SQL language for the database. One must also understand the definition of each of the property settings used for each user control. In additional to the classes that defines each user control. These are the prerequisites for becoming a successful professional .NET developer.


Look Inside Book
                            Beginning WPF 4.5 by Full Example
                            By Stephen P. Thomas


                            
                            Table of Contents

                            Beginning WPF 4.5 by Full Example

                            Introduction

                            WPF Basics

                            Let's Get Started

                            Let’s Learn By Example 1

                            Steps to create Example 1

                            Explanation of the code design

                            String.Format

                            Here is the full code listing of Example 1:

                            Let’s Learn by Example 2: Layout

                            Grid Panel

                            Stack Panel

                            Uniform Grid

                            Wrap Panel

                            Dock Panel

                            Canvas

                            Steps to create Example 2 Layout

                            Full XAML listing with explanation:

                            Let’s Learn by Example 3: TimeZone - Dependency Property

                            Steps to create Example 3 Timezone

                            Here is the full code listing for Example 3 Timezone – Dependency Property

                            XAML Listing:

                            Let’s Learn by Example 4:  Attached Properties

                            Steps to create Example 4 Attached Properties

                            Explanation of the code design

                            Here is the full code listing of Example 4:

                            XAML:

                            Code Behind:

                            Let’s Learn by Example 5: Resource Dictionary

                            Steps to create Example 5

                            Explanation of the code design

                            Here is the full code listing of Example 5 Resource Dictionary :

                            XAML MainWindow.xaml:

                            Resource Dictionaries Dictionary1.xaml:

                            Resource Dictionaries Dictionary2.xaml:

                            Code Behind  MainWindow.xaml.cs:

                            Data Binding

                            Let’s Learn by Example 6: Bind Using Attribute Syntax

                            Steps to create Example 6

                            Explanation of the code design

                            Here is the full code listing of Example 6 Binding using attribute syntax :

                            XAML MainWindow.xaml :

                            Code Behind MainWindow.xaml.cs:

                            Summary

                            ContentControl

                            Let’s Learn By Example 7: ControlTemplate

                            Steps to create Example 7

                            Explanation of the code design

                            Here is the full code listing of Example 7 ControlTemplate :

                            XAML MainWindow.xaml :

                            Code Behind MainWindow.xaml.cs:

                            Summary

                            Events

                            Let’s Learn by Example 8: Events

                            Steps to create Example 8

                            Explanation of the code design

                            Here is the full code listing of Example 8 Events :

                            XAML MainWindow.xaml :

                            Code Behind MainWindow.xaml.cs:

                            Pack URI

                            Let’s Learn by Example 9: Pack URI

                            Steps to create Example 9

                            Explanation of the code design

                            Here is the full code listing of Example 9 PackURI project :

                            XAML MainWindow.xaml :

                            Code Behind MainWindow.xaml.cs:

                            Let’s Learn by Example 10: Create Custom Commands

                            Steps to create Example 10

                            Explanation of the code design

                            Here is the full code listing of Example 10 Create Custom Command project :

                            XAML MainWindow.xaml :

                            Code Behind MainWindow.xaml.cs:

                            Code Class WebBrowser.cs:

                            Let’s Learn By Example 11: MasterDetail l-LINQ-EF

                            What is LINQ?

                            What is Entity Framework?

                            Steps to create Example 11

                            Add the Northwind Database

                            Add Entity Framework

                            Full code listing with Explanation of the code design

                            Code Behind MainWindow.xaml.cs:

                            XAML MainWindow.xaml :

                            App.Config

                            Entity Framework Connection Strings

                            Metadata

                            Run the Application

                            Let’s Learn by Example12-Drag and Drop DataGrid –EF

                            Steps to create Example 12

                            Add The Entity Data Model

                            Add New Data Source

                            Use LINQ to Query Database

                            Run the Application

                            Full code listing in the WPFExample12-DragAndDropDataGridEF Project

                            Code Behind MainWindow.xaml.cs:

                            MainWindow.xaml

                            App.Config

                            App.xaml

                            Full Code Listings in the EFClassLibrary Project

                            Class1.cs

                            App.Config

                            Summary

                            About the Author

                            Other Books by Author Stephen Thomas

                            Telerik Rad Grid Control for ASP.NET AJAX by Full Example

                            Installing Visual Studio 2012 on Windows 8 Step By Step

                            How to Setup Your Verizon FIOS Static IP with Windows Server 2008 Step by Step

                            Installing SQL Server 2012 Step By Step

                            


                            Introduction
                            This book will quickly show you (by full example) how to create fully functional WPF applications using C#, XML, Microsoft SQL Server 2008/2012, XAML, Visual Studio 2010 or 2012, LINQ, Entity Framework, and the DataGrid.  The examples in this book will include every single line of code that is required to execute.  No assumptions will be made.  The decision to write this book came from the need and frustration with finding real usable solutions.  The purpose of this book is to “Learn By Full Example”.  This is accomplished by eliminating lengthy useless explanations.  Most developers prefer to learn by coding and not by reading boring long and drawn out text.  If you need more details at any point, then refer to Microsoft's MSDN website.  There you will find all the Microsoft detailed references.   The goal is to save the next person from this same frustration.

                            Most real world .NET development projects do not allow a developer to click wizards and create an application, based on requirements, by the private or government sector.  In order to be a professional .NET developer in these situations one must be an expert with all aspects of code in WPF.  That is with the language you are programming, the declarative markup code, and the SQL language for the database.  One must also understand the definition of each of the property settings used for each user control.  In additional to the classes that defines each user control.  These are the prerequisites for becoming a successful professional .NET developer
                            WPF Basics

                            Windows Presentation Foundation is the newer .NET framework platform that in my opinion replaces Windows forms and the old Win32 API's with a visually rich and intuitive user and developer experience. 

                            Let's Get Started

                            By Identifying and briefly discussing the minimum assemblies required to create a Windows Presentation Foundation application.  The Managed WPF layer is a set of classes and types built using the .NET Framework that is managed by the CLR (Common Language Runtime). This Managed WPF Layer comprise of three assemblies.


                        

Customer Reviews

Worth the money

"The title of the book says it all, "by Full Example." If you are looking for a very good introduction to WPF and want to walk away with great knowledge, this book is recommended. I almost did not buy because of one negative review, but I read more about it so I took the chance. Worth the money, enough said."
Constantin S., Elance Programmer