WPF Class Instructor Notes

Meeting Timeline

Meeting 01

Meeting 02

Meeting 03

Meeting 04

Meeting 05

Meeting 06

Meeting 07

Meeting 08

Meeting 09

Meeting 10

Module Notes and Key Topics

Module 01 Introduction and XAML basics

Module 02 Layout and Panels

Module 03 Dependency Properties and Routed Events

Module 04 Controls

Lab 1

Summary: I provide text files in place of code snippets (see my class CD MScourse_6460\Snippets as text). I do not use Virtual Machines for the lab so ignore instructions on logon and where the lab files exist. To get the lab files, you will need to extract them from the student CD in the MS course 6460 disk. Locate and run the file named AllFiles.exe. This will extract the lab files to your C:\Program Files\Microsoft Learning\6460 folder. I'd suggest that you not attempt to modify these files from the directory where they were installed. Instead, copy them to a location that is writable (like your desktop).

Snippets: I'm not making use of code snippets in this lab. So when you read instructions like: "...position the cursor after the patientSearch_Click method, type findParient and press TAB....) then do this instead: locate the text file named findPatient.txt and insert as text.

Exercise 1: this is all about layout and creating a form-based application. At some point near the end of the lab (task 4, step 14), they will ask to to take a short cut and just inject some XAML from a text file.

Exercise 2: setting up button click event handlers and a Command source with Execute / CanExecute handlers

Exercise 3: add a few more pages, more navigation commands and command bindings. Start adding NavigationService calls to move from page to page.

Exercise 4: is to convert this to an XBAP app (and we will not bother to do this portion of the  lab)

Changes from Visual Studio 2008 to 2010:

Lab details

The lab asks you to reference the ContosoDataLib. The source code for this utility assembly is provided in the labs for module 4,5,6,7,9 (all the same source). This contains:

  1.  Appointment class (collection of Appointment objects, methods to create an appointment, find an appointment where an appointment is a description, start date, end date, patient name, reference, and specialist)
  2. The Patient class (DateOfBirth, FirstName, LastName, Gender, Reference, and a collection of Patient)
  3. Specialist class (Name, Reference, collection of Specialis, collection of appointnents)

Lab 2

Lab 3