C# Windows Presentation Foundation Demos

creating Windows GUIs

1.0 Contents

Windows Presentation Foundation (WPF) is a very well engineered .Net framework for creating Graphical User Interfaces (GUIs). This repository provides a collection of WPF demos.
  • WPF_DemoPanels
    Demonstrates use of Grid, Canvas, DockPanel, StackPanel, and WrapPanel.
  • Wpf_RoutedEvent
    Illustrates how routed events and event bubbling work.
  • Wpf_AttachedProperties
    Simple example of attached properties.
  • WPF_Controls
    Illustrates how WPF controls work with demos of Flow Documents, SplitterBar, ProgressBar bound to Slider, GroupBox, and opening pop-up windows.
  • WPF_DataTemplateDemo
    Adds column structure to a ListBox using a DataTemplate.
  • WPF_ChangeNotification
    Shows how to bind changes in a C# class to a WPF control.
  • WPF_DispatcherDemo
    Illustrates how to use the WPF Dispatcher to allow a child thread to change the user interface. It does that by passing the change work on to the Window's main thread.
  • WPF_MessageHook
    Shows how to access messages flowing through the encapsulated Windows message loop.
  • WPF_BarChart
    Creates a simple bar chart to illustrate that visible elements are objects that can can be accessed from a host application.
  • WPF_UserControl
    Illustrates creation of a UserControl, which composes several WPF defined controls. These can be very useful for factoring common code out of Tabs in a window.
  • WPF_ControlTemplate
    Illustrates the flexibility of WPF visual elements. You can change the presentation and behaviors of built-in controls very easily.
  • Wpf_LabManager
    A prototype application used as a starting point for a CASE project. It illustrates use of NavigationWindows and configuring a fairly structured user interface.

2.0 Build

All code was built with Visual Studio, Community Edition - 2019, and tested on Windows 10.

3.0 Resources