Week 6b - Windows Presentation Foundation

Concepts and Example Code

Content:

This lecture continues discussion of Windows Presentation Foundation (WPF), a Graphical User Interface technology. You are encouraged to ask any questions you may have about work on your projects.
  1. The Syllabus describes topics to be covered, reading material for you to digest as part of each lecture, and due dates for assigned projects.
  2. Project Statements:

  3. Demo code samples

    We will look at several of these examples, focusing on:
    • Panels
    • Routed Events
    • Controls
    • Data Templates
    Demo Panels
    Illustrates how grid, canvas, dock, stack, and wrap panels work.

    Routed Event Demo
    Demonstrates event bubbling with Routed Events.

    Attached Properties Demo
    An example of attached properties used to dock buttons in a window.

    Triggers Demo
    Illustrates one use of triggers to change a textbox property.

    WPF Controls
    Shows how several of the most common kinds of controls are used. Includes use of data binding.

    Data Template Demo
    Data Templates are used to modify how data is displayed in WPF controls.

    Control Template
    Control templates can be used to modify the presentation of window controls.

    Bar Chart Demo
    Illustrates using rectangles to build a bar chart where each bar has a tooltip.

    WPF with all Code A WPF application can be built without using XAML. This demo illustrates how.

    Advanced Demos

    Change Notification
    Dispatcher Demo
    Message Hook
    Custom Element Demo

  4. WPF Presentation

  5. WPF Tutorials:

  6. Lecture Take-aways:

    The most important things we discussed are: