Hands-On Technology Transfer
presents
Windows Presentation Foundation Programming Using C# (Canada) On-Site Training
This course provides students with hands on experience using Visual Studio to create dynamic Windows Presentation Foundation (WPF) applications using C#
Course Description/Agenda
This course provides students with hands on experience using Visual Studio to create dynamic Windows Presentation Foundation (WPF) applications using C#. This class provides a thorough introduction to the C# programming language, including coverage of the essentials of the C# programming language, built in data types, operators, control structures, classes and methods.
Students will learn the basics of XAML and how it, combined with C#, is used to describe the appearance and behavior of WPF applications. Students also learn how to use ADO.NET to interact with data sources and display data. Other topics include examining WPF controls, working with images and multimedia content, scaling, rotating and skewing UI elements, and using WPF's powerful data binding features. Comprehensive labs and exercises provide the students with experience creating and deploying WPF applications. Prerequisites Knowledge of fundamental XML syntax is helpful, but not required. Prior experience with a scripting or programming language is required.
Introduction to .NET
- Overview of the .NET Framework
- How .NET is Different from Traditional Programming
- Common Language Runtime (CLR)
- Common Language Specification (CLS)
- Common Type System (CTS)
- .NET Assemblies
- Microsoft Intermediate Language (CIL)
- .NET Namespaces
- .NET Framework Class Library
Introduction to Visual Studio
- Setting Profiles
- Creating a Project
- Using the Code Editor
- Setting Project Properties
- Adding References
- Compiling a Program
- Running a Program
- Debugging a Program
- Using the MSDN (Help)
Language Fundamentals
- C# Program Structure
- Defining Namespaces
- Understanding C# Data Types
- Defining Variables and Constants
- Comparing Value Types versus Reference Types
- Working with Operators and Expressions
- Performing Type Conversions
- Using Console I/O
- Formatting Numbers, Date and Times
Conditionals and Looping
- if/else
- switch
- while and do/while
- for
- foreach
Functions and Parameters
- Defining Static and Instance Functions
- Passing Parameters by value and by reference
- Overloading Functions
- Using Variable Length Parameter Lists
Exception Handling
- What are Exceptions?
- .NET Exception Hierarchy
- Catching Exceptions
- Throwing Exceptions
- Managing Resources with Finally
- Defining Custom Exception Types
Collections
- Defining and Using Arrays
- Understanding System.Array
- Using .NET Collections
- Working with ArrayLists and Hashtables
- Using .NET Generic Collections
- Working with Lists and Dictionaries
- Introducing LINQ
Object-Oriented Programming
- Overview of Object-Oriented Programming
- Working With Enumerations
- Defining and Using Classes
- Extending .NET Classes via Inheritance
- Defining and Implementing Interfaces
- Understanding the Role of Interfaces in .NET
WPF Fundamentals
- WPF Architecture
- Types of WPF Applications
- XAML Overview
- Structure of WPF Windows Applications
- The User Interface Classes
- The Application Class
- Building a WPF Windows Application using Visual Studio
- Designing the GUI
- Using Controls
- Handling Events
- Passing Command-Line Arguments
- Handling Application Lifetime Events
- Working With Configuration Files
Working with XAML
- XAML vs. BAML
- Understanding XAML Markup
- Element and Property Syntax
- XAML Namespaces
- Creating Objects using XAML
- Using Collections in XAML
- Handling Events in XAML
- Working with Resources
- Window vs. Application Resources
- Static vs Dynamic Binding
- Defining and Using Styles
WPF User Interface Basics
- WPF Control Inheritance Hierarchy
- Common Properties
- Common Methods
- Common Events
- Creating Controls at Design Time
- Creating Controls at Run Time
- Classic Properties, Methods and Events
- Dependency Properties
- Configuring a Window
- Controlling Appearance
- Managing Size
- Managing Position
- Managing Alignment
- Managing Visibility
- Using Fonts
- Working with Transformations
- Scale Transformations
- Rotation Transformations
- Skew Transformations
Using WPF Layout Controls
- Advantages of WPF Layout Controls
- Using the Grid Control
- Defining Rows and Columns
- Placing Controls
- Using the UniformGrid Control
- Using the StackPanel Control
- Using the WrapPanel Control
- Using the DockPanel Control
- Using the Canvas Control
- Adding Scrolling Capabilities to Container Controls
- Accessing Child Controls Programmatically
Using WPF Controls
- Button Controls
- Button Characteristics
- RepeatButton
- ToggleButton
- CheckBox
- RadioButton
- Using Labels
- TextBlock
- TextBox
- PasswordBox
- GroupBox
- Image Control
- Using an Expander
- Building Tabbed Windows
- Slider Controls
- Using a ProgressBar
- Adding Tooltips
Using WPF Item Controls
- Working with Controls that Manage Items
- ListBox
- ComboBox
- TreeView
- Menus
- ContextMenus
- Toolbars
- StatusBars
Working with Dialogs
- Dialog Display/Response Paradigm
- MessageBox Fundamentals
- Using WPF's Common Dialogs
- OpenFileDialog
- SaveFileDialog
- PrintDialog
- Working with Modal Dialogs
- Designing Custom Dialogs
- Displaying Modal Dialogs
- Working with DialogResult
- Accessing Dialog Data
- Validating Dialog Data
- Working with Modeless Dialogs
- Displaying Modeless Dialogs
- Firing Events to Notify the Application that Data is Available for
Processing
- Processing Data via a Modeless Dialog
Commands and Routed Events
- Working with Commands
- Purpose and Benefits of Commands
- Using Built-In WPF Commands
- Associating a Command with a Command Source
- Writing a Command Handler
- Binding Commands to Command Handlers
- Defining Custom Commands
- Specifying Key Gestures
- Implementing WPF Routed Events
|
Add to favorites
Email this page
|