-
Notifications
You must be signed in to change notification settings - Fork 3
Home
ScarletKuro edited this page Feb 15, 2026
·
2 revisions
Welcome to the Microsoft.Extensions.Hosting.Wpf wiki!
An unofficial implementation of Microsoft.Extensions.Hosting for WPF applications. This library brings the power of the .NET Generic Host to WPF, enabling dependency injection, configuration, logging, and hosted services in your desktop applications.
- Generic Host integration for WPF applications
- ViewModel Locator pattern for binding DataContext directly in XAML via DI
-
Constructor injection in your
Appclass - System tray icon support (optional extension)
- Thread switching between UI and background threads (optional extension)
- 3rd-party DI container support (SimpleInjector, Autofac, etc.)
- Multi-target framework support: .NET Framework 4.6.2/4.8, .NET Core 3.1, .NET 6/7/8
Microsoft.Extensions.Hosting.Wpf
Getting Started
Core Features
Extensions
Reference