WPF Session Plan
Transcript of WPF Session Plan
-
7/29/2019 WPF Session Plan
1/23
Method of handling Activities Category
1. Faculty demonstrating the steps A
2. Faculty demonstrate the steps in discussion mode by asking
students to tell the steps
B
3. Tell the class to read the steps and call any one student
randomly to perform the steps on faculty node.
C
4. After demonstration, call any student to perform the activity on
Faculty node.
D
5. Students to do these exercises in the MR without guidance from
the faculty.
E
6. Students to do these exercises in the CR with guidance from
faculty.
F
Session 1
Topic/Activity Name Time
Duration
in min
Demonstration
Strategy
Source file Name :
Slide Name(Slide Numbers)
Module 01: Creating an Application by Using Windows
Presentation FoundationLesson: Overview of WPF
What Is WPF?
WPF Architecture 10
Defining User Interfaces in WPF 5
WPF Capabilities and Features 5
WPF Application Types 3
Lesson: Creating a Simple WPF Application
Demonstration: Creating WPF Applications by Using Visual
Studio 2008
A
Defining the Application 10
11
12
Module 01:
Lesson1
Module 01:
Lesson2
6460A_01.pps (1-21)
Visual Studio 2008: Windows Presentation Foundation
Source
-
7/29/2019 WPF Session Plan
2/23
Defining Windows or Pages 5
Adding Controls 5
Building and Running a WPF Application 2
Lesson: Handling Events and Commands
The WPF Event ModelHandling WPF Control Events 5
What Are Routed Events? 10
Defining Routed Events 5
What Are Commands? 10
Demonstration: Defining Commands 10 A
Total Time 120
Session 2
Topic/Activity Name Time
Durationin min
Demonstration
Strategy
Source file Name
Module 01: Creating an Application by Using Windows
Presentation FoundationLesson: Navigating Between Pages
The WPF Navigation Model
Demonstration: Navigating Pages by Using Hyperlinks 10 A
Handling Page Navigation Events 5
Maintaining State by Using Navigation Services 5
Module Review and Takeaways 5
Module 2: Building User Interfaces
Lesson: Defining Page LayoutWPF Page Layout Model
WPF Layout Classes 15
Demonstration: Defining Layout by Using Panels 15 A
Demonstration: Defining Layout by Using Grids 10 A
Lesson: Building User Interfaces by Using Content Controls
What Is a Content Control?
Demonstration: Creating a User Interface by Using Content
Controls
5 A
What Is a Headered Content Control? 3
12
11
7
7
Module 01:
Lesson3
Module 02:
Lesson1
Module 02:
Lesson2
6460A_02.pps(1-19)
6460A_01.pps (22-30)
Source
Module 01:
Lesson4
-
7/29/2019 WPF Session Plan
3/23
Demonstration: Creating a User Interface by Using Headered
Content Controls
5 A
Lesson: Building User Interfaces by Using Items Controls
What Is an Items Control?
Handling Item Selection 5Demonstration: Creating a User Interface by Using Items
Controls
5 A
Total Time 120
Session 3-MR1
Topic/Activity Name Time
Duration
in min
Demonstration
Strategy
Source file Name
Exercise 1: Creating a Stand-Alone WPF Application 10 E
Exercise 2: Handling Events and Commands 20 E
Exercise 3: Navigating Between Pages 25 E
Exercise 4: Creating an XBAP Application 15 E
Exercise 1: Defining Page Layout and Adding Content 25 E
Exercise 2: Enhancing the User Interface by Using Items
Controls
20 E
Total Time 115
Session 4
Topic/Activity Name Time
Duration
in min
Demonstration
Strategy
Source file Name
Module 2: Building User Interfaces
Lesson: Hosting Windows Forms Controls
Why Host Windows Forms Controls in WPF?
Referencing Windows Forms Controls in a WPF Application 10
Using Windows Forms Controls in XAML 10
6460A_02.pps (20-27)
7
7
Source
Module 01
Module 02:
Lesson3
Module 02
Source
Module 02:
Lesson4
-
7/29/2019 WPF Session Plan
4/23
Interacting with Windows Forms Controls 5
Module Review and Takeaways 5
Module 3: Customizing Appearance
Lesson: Sharing Logical Resources in an Application
What Are Resources?Defining Resources
Referencing Resources in XAML
Referencing Resources Programmatically
Reusing Resources Across Applications
Demonstration: Sharing Resources in a WPF Application 10 A
Defining Localized Resources 10
Lesson: Creating Consistent User Interfaces by Using Styles
What Are Styles?
Defining Styles
Extending Styles
Setting Styles Programmatically 5
Lesson: Changing the Appearance of Controls by Using Control
Templates
What Are Control Templates?
Defining a Control Template for a Content Control
Defining a Control Template for an Items Control
Providing User Customization by Using Template Bindings 5
Demonstration: Changing the Appearance of Controls by
Using Control Templates
10 A
Total Time 120
Session 5
Topic/Activity Name Time
Duration
in min
Demonstration
Strategy
Source file Name
Module 3: Customizing Appearance
Lesson: Enhancing User Interfaces by Using Triggers and
Animations
What Are Triggers?
Defining Property Triggers
What Are Animations?
Defining Animations
5
6
7
6460A_03.pps(1-21)
15
10
Module 03:
Lesson2
Module 03:
Lesson1
Module 03:
Lesson3
6460A_03.pps (22-30)15
7
Source
Module 03:
Lesson4
-
7/29/2019 WPF Session Plan
5/23
Demonstration: Enhancing Controls by Using Triggers and
Animations
15 A
Module Review and Takeaways 5
Module 4: Data Binding
Lesson: Overview of Data BindingThe WPF Data-Binding Model
Binding Sources and Binding Targets
Data-Binding Modes
Lesson: Creating a Data Binding
Binding to a Class Property
Binding Multiple Controls to a Class
Binding to a Full Object
Binding to XML Data
Binding to Another User Interface Element
Demonstration: Binding to Different Data Sources 15 A
Lesson: Implementing Property Change Notification
What Are Property Change Notifications?
Propagating Property Change Notifications to a Binding Target
Propagating Value Changes to a Binding Source
Demonstration: Triggering Source Updates 12 A
Total Time 120
Session 6-MR2
Topic/Activity Name Time
Duration
in min
Demonstration
Strategy
Source file Name
Exercise 3: Integrating Windows Forms Controls 15 E
Exercise 1: Sharing Logical Resources in an Application 20 E
Exercise 2: Creating Consistent User Interfaces by Using
Styles
20 E
Exercise 3: Changing the Appearance of Controls by Using
Control Templates
25 E
6460A_04.pps(1-18)
Module 04:
Lesson3
17
Source
Module 04:
Lesson1
Module 04:
Lesson2
17
12
Module 02
Module 03
5
-
7/29/2019 WPF Session Plan
6/23
Exercise 4: Enhancing the User Interface by Using Triggers
and Animations
30 E
Total Time 110
Session 7
Topic/Activity Name Time
Duration
in min
Demonstration
Strategy
Source file Name
Module 4: Data Binding
Lesson 4: Converting Data
Default Data Conversions
Implementing a Custom Value Converter
Lesson: Validating Data
Default Data Validation
Providing Visual Validation FeedbackDefining a Custom Validation Rule
Specifying Validation Rules by Using XAML
Module Review and Takeaways 5
Module 5: Data Bindings to Collections
Lesson: Binding to Collections of Objects
Overview of Binding to Collections
What Is an Observable Collection?
Defining an Observable Collection Class
Introduction to LINQ 15
Binding to ADO.NET Data Objects 15
Lesson: Presenting Data by Using Collection Views
What Is a Collection View?
Creating and Using a Collection View
Sorting Data by Using a Collection View
Filtering Data by Using a Collection View
Grouping Data by Using a Collection View
Creating Master-Detail User Interfaces 7
Total Time 120
Session 8
12
Source
Module 04:
Lesson4
6460A_04.pps (19-29)
6460A_05.pps (1-15)
12
17
12
10
15
Module 05:
Lesson1
Module 05:
Lesson2
-
7/29/2019 WPF Session Plan
7/23
Topic/Activity Name Time
Duration
in min
Demonstration
Strategy
Source file Name
Module 5: Data Bindings to Collections
Lesson: Presenting Data by Using Data TemplatesWhat Is a Data Template?
Defining and Using a Data Template
Defining a Data Template as a Resource 5
Using Data Triggers in a Data Template 15
Module Review and Takeaways 5
Module 6: Creating New Controls
Lesson: Overview of Control Authoring
Why Create New Controls?
Options for Creating New Controls
User Controls 5
Custom Controls 5FrameworkElement-Derived Controls 5
Lesson: Creating Controls
Creating a User Control
Implementing Properties and Events
Creating a Custom Control
Implementing Commands
Enhancing Controls by Using Themes
Demonstration: Implementing a NumericUpDown Control 20 A
Module Review and Takeaways 5
Total Time 120
Session 9-MR2
Topic/Activity Name Time
Duration
in min
Demonstration
Strategy
Source file Name
Exercise 1: Creating Data Bindings 15 E
Exercise 2: Implementing Property Change Notification 10 E
Exercise 3: Converting Data 15 E
Exercise 4: Validating Data 15 E
6460A_05.pps (16-23)
17
16
Source
Module 06:Lesson2
7
Source
Module 05:
Lesson3
Module 06:Lesson1
6460A_06.pps (1-19)
15
Module 04
-
7/29/2019 WPF Session Plan
8/23
Exercise 1: Presenting Data by Using Collection Views 15 E
Exercise 2: Presenting Data by Using Data Templates 25 E
Exercise 1: Implementing a Custom Control 25 E
Total Time 120
Session 10
Topic/Activity Name Time
Duration
in min
Demonstration
Strategy
Source file Name
Module 7: Managing Documents
Lesson: Creating and Viewing Flow Documents
What Are Flow Documents?
Defining a Flow Document
Types of Flow Document Containers
Demonstration: Defining FlowDocument Containers 15 A
Flow-Related ControlsCustomizing Text
Demonstration: Customizing Text in a FlowDocument 10 A
Lesson: Creating and Viewing Fixed Documents
What Are Fixed Documents?
Defining Fixed Documents
Defining a Fixed Document Viewer
Demonstration: Creating a FixedDocument in XAML 10 A
Lesson: Packaging Documents
Support for Packaging Documents
Packaging Document Parts into a ZIP FileDigitally Signing Content 10
Associating Information with Packages and Parts 10
Demonstration: Creating a Digitally Signed ZipPackage 15 A
Total Time 120
Session 11
Topic/Activity Name Time
Duration
in min
Demonstration
Strategy
Source file Name
Module 7: Managing Documents
Lesson: Printing Documents 7
16
Module 06
Module 05
10
Module 07:Lesson1
Source
12
Module 07:Lesson3
Module 07:Lesson1
Source
6460A_07.pps (1-21)
12
Module 07:Lesson4
-
7/29/2019 WPF Session Plan
9/23
What Is the XML Paper Specification?
Demonstration: Printing Documents 10 A
Controlling Print Jobs
Managing the Print Queue
Module Review and Takeaways 5Module 8: Graphics and Multimedia
Lesson: Creating 2-D Graphics
2-D Graphics Support in WPF
Drawing Shapes
What Are Paths and Geometries? 15
Demonstration: Filling Shapes and Geometries 15 A
Demonstration: Using and Animating Transformations 15 A
Lesson: Displaying Images
WPF Imaging Components
Demonstration: Displaying Images in WPF 10 A
Encoding and Decoding ImagesRotating, Converting, and Cropping Images
Total Time 120
Session 12-MR3
Topic/Activity Name Time
Duration
in min
Demonstration
Strategy
Source file Name
Exercise 1: Creating and Displaying Flow Documents 20 E
Exercise 2: Printing Documents 20 E
Exercise 3: Creating and Signing XPS Documents 20 E
Exercise 1: Displaying 2-D Graphics 30 E
Exercise 2: Displaying Images 20 E
Total Time 110
Session 13
Topic/Activity Name Time
Duration
in min
Demonstration
Strategy
Source file Name
Module 8: Graphics and Multimedia
16
Module 08:Lesson1
Module 08
10
7
Module 07
Module 08:Lesson3
6460A_08.pps (1-15)
Module 08:Lesson2
Source
10
6460A_07.pps (23-31)
Source
-
7/29/2019 WPF Session Plan
10/23
Lesson: Creating 3-D Graphics
Differences Between 2-D and 3-D
3-D Graphics Support in WPF
What is a Viewport3D?
Camera Types for Viewport3D
Creating Models
Demonstration: Rendering 3-D Content
Lesson: Manipulating the 3-D Environment
Specifying Materials for a 3-D Model
Specifying Light for a 3-D Model 10
Demonstration: Transforming a 3-D Model
Demonstration: Animating a 3-D Model
Lesson: Adding Multimedia
WPF Support for Multimedia
Media Playback Modes
Displaying Media by Using a MediaElement
Controlling the Operation of a MediaElement
Playing Media by Using a MediaPlayer
Module Review and Takeaways 5
Total Time 115
Session 14
Topic/Activity Name TimeDuration
in min
DemonstrationStrategy
Source file Name
Module 9: Configuring and Deploying Applications in
Windows Presentation Foundation
Lesson: Deployment Options
Deployment Technologies
Full-Trust and Partial-Trust Applications
WPF Features Available in Partial Trust 10
WPF Features Unavailable in Partial Trust 10
XBAP Applications on the Local Intranet 10
26
17
17
15
25
17
6460A_08.pps (16-36)
Module 09:
Lesson1
Source
Module 08:Lesson4
-
7/29/2019 WPF Session Plan
11/23
Lesson: Deploying a Stand-Alone WPF Application
Deploying a Stand-Alone Application by Using Windows Installer
Deploying a Stand-Alone Application by Using ClickOnce 10
Installing the .NET Framework 3
Lesson: Deploying an XBAP Application
XBAP Files That Must Be Deployed
What Is a Manifest File?
Publishing an XBAP Application to a Web Server
Installing an XBAP Application to a Client Computer
Lesson: Configuring Manifest Settings
Using the Manifest Generation and Editing Tools
Mage.exe Commands
Setting Options for New and Updated Files
Setting Options for Signing Files
Module Review and Takeaways 5Course Evaluation
Total Time 120
Session 15-MR4
Topic/Activity Name Time
Duration
in min
Demonstration
Strategy
Source file Name
Exercise 3: Displaying 3-D Graphics 30 E
Exercise 4: Playing Video Clips 30 E
Exercise 1: Deploying a Stand-Alone WPF Application 20 E
Exercise 2: Updating a Deployment Manifest 20 E
Exercise 3: Deploying an XBAP Application 20 E
Total Time 120
12
7
11
Source
Module 08
Module 09
6460A_09.pps (1-26)
10
Module 09:
Lesson4
Module 09:
Lesson2
Module 09:
Lesson3
15
-
7/29/2019 WPF Session Plan
12/23
Note:
1. Ask the students to answer the Lab Review questions in the respective machine room sessions along with the exercises.
Therefore, you need not cover the slide, Lab Review in the Class Room(CR) session.
2. You may skip the 6460A_00.pps file in the first session and just give a brief introduction about the module course content.3. Although an estimated time is allocated for the complete lab exercise in the respective slide, you may refer to the session plan
for the time that is required to complete a particular exercise.
4. You must provide the datafiles for the lab exercises to the students from the following location in the TIRM CD:
Datafiles_For_Students\WPF folder.
5. You may locate the datafiles to conduct the demonstrations and Lab exercises from the following location in the TIRM CD:
Datafiles_For_Faculty\WPF folder.
-
7/29/2019 WPF Session Plan
13/23
Remarks
-
7/29/2019 WPF Session Plan
14/23
Remarks
-
7/29/2019 WPF Session Plan
15/23
Remarks
Remarks
-
7/29/2019 WPF Session Plan
16/23
Remarks
-
7/29/2019 WPF Session Plan
17/23
Remarks
-
7/29/2019 WPF Session Plan
18/23
Remarks
-
7/29/2019 WPF Session Plan
19/23
Remarks
Remarks
-
7/29/2019 WPF Session Plan
20/23
Remarks
Remarks
-
7/29/2019 WPF Session Plan
21/23
Remarks
Remarks
-
7/29/2019 WPF Session Plan
22/23
This demonstration will not be covered in
the class due to non-availability of 3D
graphics card support.
Remarks
These demonstrations will not be covered
in the class due to non-availability of 3D
graphics card support.
-
7/29/2019 WPF Session Plan
23/23
After completing this course, students will
be evaluated on this course by appearing
for a Module Test.
Remarks