Course Description
All HOTT courses are available face-to-face, remote-live, on-demand or on site at your facility. This course provides students with hands on experience using Visual Studio to create Windows Presentation Foundation (WPF) applications using VB.NET. Students should already have a working knowledge of VB.NET.
This course teaches students how to leverage the power of the .NET Framework to build WPF applications. Students learn the basics of XAML and how to use it to describe the appearance and behavior of WPF user interfaces.
Students also learn how to use XAML resources to manage styles, triggers and control templates.
Students learn how use with a variety of WPF controls to interact with users and manage data in multi-form applications. Students explore how to leverage the power of XAML data binding to build Students also learn the basics of working with images and simple animations.
Students learn how to use their data binding and command skills to implement the MVVM design pattern with WPF applications, including case studies. Students will also learn how to leverage the power of web services by calling both SOAP services and RESful APIs.
Other topics include: building menus, toolbars and status bars; reading and writing files; and deploying WPF applications. Comprehensive labs and exercises provide the students with extensive experience creating and debugging WPF applications.
This course provides thorough coverage of the use of Windows Presentation Foundation (WPF) to build desktop applications. Students requiring additional coverage of Windows Forms, ASP.NET Web Forms, ASP.NET MVC or WCF should contact HOTT or refer to HOTT's complete course listing for additional training courses.
Students who are not familiar with the VB.NET language should take the 5-day Windows Presentation Foundation Programming Using Visual Basic.NET class instead.
Agenda
WPF Applications - WPF Applications
- Types of WPF Applications
- Structure of WPF Applications
- Using the WPF Designer
- Setting Properties
- Handling Events
- Using the MessageBox Class
- Passing Command-Line Arguments
- Handling Application Lifetime Events
| Working with XAML - XAML vs. BAML
- Understanding XAML Markup
- XAML Elements
- XAML Namespaces
- Creating Objects using XAML
- Working with Resources
- Handling Events in XAML
- Working with Resources
- Defining and Using Styles
|
WPF User Interface Basics - WPF Control Hierarchy
- Common Properties, Methods and Events
- Dependency Properties
- Configuring a Window's Properties
- Adding Controls
- Controlling the UI's Appearance
- Managing Size
- Managing Position
- Managing Alignment
- Managing Visibility
- Using Fonts
- Working with Transformations
- Scale Transformations
- Rotation Transformations
- Skew Transformations
| Using XAML Layout Elements - Overview of Layout Elements
- Using the Canvas
- Using the StackPanel
- Using the WrapPanel
- Using the Grid
- Using the UniformGrid
- Using the DockPanel
- Using the ViewBox
- Adding Scrolling Capabilities
|
Using WPF Controls - Working with WPF Controls
- Using Text Controls
- Using Button Controls
- Using Selection Controls
- Using List Controls
- Using Container Controls
- Working with Routed Events
| Working with Styles, Triggers and Control Templates - Using Styles
- Working with Triggers and Multi-Triggers
- Using Control Templates
|
Working with WPF Windows - Understanding Modal vs Modeless
- Displaying a Window Modally
- Retrieving Data from Modal Windows
- Creating Owned Windows
- Displaying a Window Modelessly
- Working with Data in Modeless Windows
- Using Common Dialogs
- Creating Irregularly Shaped Windows
| Working with Menus, Toolbars and Status Bars - Working with Menus
- Working with Toolbars
- Working with Status Bars
- Working with the Ribbon
|
Working with Images, Colors and Animations - Working with Images
- Working with Shapes
- Working with Brushes
- Using Solid Brushes
- Using Gradient Brushes
- Building Simple Animations
| Working with Data Binding - Overview of Data Binding
- Binding to Control Properties
- Binding to Data Sources
- Binding to a List
- Binding to an ADO.NET Object
- Binding to an Object
- Binding to XML
- Sorting and Filtering Data
- Using Value Converters
- Working with Change Notifications
|
MVVM Commands - Understanding Commands
- Creating Commands
- Associating Command with a Command Source
- Binding Command to Command Handlers
- Building WPF Applications Using the MVVM Design Pattern
- Understanding MVVM
- Implementing INotifyPropertyChange
- Using a DelegateCommand
- Working with ObservableCollections
- MVVM Case Studies
| Calling Web Services - Understanding Web Services
- Calling SOAP Services
- Calling REST Services
- Serializing and Deserializing JSON
|
Deploying WPF Applications - Understanding Deployment Options
- Configuring an Application for Deployment
- Using XCOPY Deployment
- Using Installers
- Using Click-Once Deployment
| |
Audience
Knowledge of fundamental XML syntax is helpful, but not required. Prior experience with VB.NET is required.
Comments
50% of the class is focused on hands-on lab exercises.
Course materials include student guide, hands-on lab manual and USB flash drive for examples and lab work.
Students receive a certificate of completion at the end of class.
Students can retake any portion of a class that has been completed, within 12 months at no extra cost.