课程介绍:
This hands-on, 4-day course introduces Windows Presentation Foundation (WPF or “Avalon”), the .NET technology from Microsoft© for building rich Windows applications. The course uses many example programs and lab exercises that give students a firm foundation. It is current to .NET 4.0 and Visual Studio 2010.
Although WPF is a complex technology, this course takes a practical approach to the subject. Students completing the course will gain an understanding of the philosophy and architecture of WPF and be able to:
- Create rich Windows applications using the classes provided by WPF or using a combination of code and XAML (Extensible Application Markup Language);
- Build flexible and attractive user interfaces with windows, menus, dialogs, toolbars, and other common features;
- Use advanced features of WPF (including dependency properties, routed events, logical resources, styles, templates, and data binding); and
- Access databases using both Visual Studio 2010 and the Entity Data Model.
培训对象:
NET programmers who want to be able to create rich Windows applications.
预备知识:
A working knowledge of C# and the .NET Framework.
课程内容:
1. Introduction to WPF
- Why WPF?
- What Is WPF?
- .NET Framework 4.0
- WPF Overview
- Application and Window
- A Simple WPF Application
- Using Visual Studio 2010
- Brushes
- Panels
2. XAML
- Role of XAML
- Elements and Attributes
- Namespaces
- Property Elements
- Type Converters
- Content Property
- Collections
- XAML and Procedural Code
3. WPF Controls
- Button
- Label
- TextBox
- ToolTip
- RadioButton
- CheckBox
- ListBox
- ComboBox
4. Layout
- Sizing
- Positioning
- Transforms
- Canvas
- Drawing Shapes
- StackPanel
- WrapPanel
- DockPanel
- Grid
- Scrolling
- Scaling
5. Dialogs
- Message Boxes
- Win32 Common Dialogs
- Custom Modal Dialogs
- Custom Modeless Dialogs
6. Menus and Commands
- Menus
- Context Menus
- Icons on Menu Items
- Commands
- Keyboard Shortcuts
- Disabling Menu Items
- Checking Menu Items
7. Toolbars and Status Bars
- Toolbars
- Toolbars and Commands
- Status Bars
8. Dependency Properties and Routed
- Events
- Dependency Properties
- Change Notification
- Property Value Inheritance
- Support for Multiple Providers
- Routed Events
- Routing Strategies
9. Resources
- Resources in WPF
- Binary Resources
- Logical Resources
- Static versus Dynamic Resources
10. Data Binding
- Binding Sources
- Sharing Sources with DataContext
- Data Templates
- Value Converters
- Collection Views
- Data Providers
- Visual Data Binding Using Visual
- Studio 2010
- Database Access Using Entity Data
- Model
11. Styles, Templates, Skins and Themes
- Styles
- Style Sharing
- Triggers
- Validation
- Templates
- Templated Parent’s Properties
- Skins
- Themes
培训时间:
4天。