How dotnet/wpf works
WPF is a Windows desktop UI framework. An application uses the application model and XAML to construct an interface, whose controls, layout, resources, and data binding support interactive presentation; graphics and documents provide additional user-facing capabilities. WindowsBase supplies foundational properties, objects, and dispatching, while PresentationCore and WpfGfx support media and rendering. The README documents these capabilities, but the excerpts do not expose most runtime call paths, so undocumented connections are omitted. The template-to-application link is supported by the source index.
Main entry points: Application.cs Application model · PresentationFramework Controls and layout · DependencyObject.cs Dependency properties · App.xaml.cs Project templates
Components 16
Application model
- Application model
src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Application.cs - Project templates
packaging/Microsoft.Dotnet.Wpf.ProjectTemplates/content/WpfApplication-CSharp/net6.0/App.xaml.cs
UI framework
- Controls and layout
src/Microsoft.DotNet.Wpf/src/PresentationFramework - Resources
src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Application.cs - Data binding
src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DataBindEngine.cs - Documents and search
src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextFindEngine.cs
Core foundation
- Dependency properties
src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyObject.cs - Property registry
src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyProperty.cs - Property metadata
src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/FrameworkPropertyMetadata.cs - UI dispatching
src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/Dispatcher.cs
Presentation services
- Vector graphics
src/Microsoft.DotNet.Wpf/src/WpfGfx/core/common/engine.cpp - Media and animation
src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media - Font embedding
src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FontEmbeddingManager.cs - Document packaging
src/Microsoft.DotNet.Wpf/src/WindowsBase/System/IO/Packaging/CompoundFile/StorageInfo.cs - Automation input
src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClientSideProviders/MS/Internal/AutomationProxies/Input.cs
Other components
- Application developer
Connections 16
- Application developer → Project templates: starts from
- Application developer → Application model: builds with
- Project templates → Application model: uses
packaging/Microsoft.Dotnet.Wpf.ProjectTemplates/content/WpfApplication-CSharp/net6.0/App.xaml.cs - Application model → Resources: fetches resources
src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Application.cs - Application model → Controls and layout: hosts interface
src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Application.cs - Application model → Data binding: uses binding
- Application model → Documents and search: presents documents
- Controls and layout → Dependency properties: uses properties
src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DataBindEngine.cs - Dependency properties → Property registry: resolves properties
src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/DependencyObject.cs - Property metadata → Dependency properties: configures properties
- Data binding → UI dispatching: marshals work
src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/DataBindEngine.cs - Controls and layout → Vector graphics: renders interface
- Vector graphics → Media and animation: hosts media
- Documents and search → Document packaging: packages content
- Media and animation → Font embedding: tracks glyph usage
src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/FontEmbeddingManager.cs - Application developer → Automation input: injects input