Beginning WPF 4.5 by Full Example

Beginning WPF 4.5 by Full Example VB.Net

VB.Net Version PDF/EPUB

This book will quickly show you (by full example) how to create fully functional WPF applications using VB.NET, XAML, and Visual Studio 2012. 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. 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
Table of Contents
Beginning WPF 4.5 by Full Example VB.Net
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 in MainWindow.xaml.vb:
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.vb:
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.vb:
Class MainWindow
End ClassSummary
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.vb:
Pack URI
Let’s Learn by Example 9: Pack URI
Steps to create Example 9
TIP:  Show All Files
Explanation of the code design
Here is the full code listing of Example 9 PackURI project :
XAML MainWindow.xaml :
Code Behind MainWindow.xaml.vb:
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.vb:
Code Class WebBrowser.vb:
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
        

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