Dreamine.MVVM.Wpf
1.0.2
dotnet add package Dreamine.MVVM.Wpf --version 1.0.2
NuGet\Install-Package Dreamine.MVVM.Wpf -Version 1.0.2
<PackageReference Include="Dreamine.MVVM.Wpf" Version="1.0.2" />
<PackageVersion Include="Dreamine.MVVM.Wpf" Version="1.0.2" />
<PackageReference Include="Dreamine.MVVM.Wpf" />
paket add Dreamine.MVVM.Wpf --version 1.0.2
#r "nuget: Dreamine.MVVM.Wpf, 1.0.2"
#:package Dreamine.MVVM.Wpf@1.0.2
#addin nuget:?package=Dreamine.MVVM.Wpf&version=1.0.2
#tool nuget:?package=Dreamine.MVVM.Wpf&version=1.0.2
Dreamine.MVVM.Wpf
WPF-specific bootstrap and runtime integration layer for the Dreamine MVVM framework.
Overview
Dreamine.MVVM.Wpf contains the WPF-only startup and runtime wiring logic used by Dreamine MVVM applications.
This package is responsible for:
- View ↔ ViewModel registration
- automatic DI registration through
DMContainer - automatic
DataContextattachment when a View is loaded - keeping WPF runtime concerns out of platform-neutral libraries
Why this package exists
Dreamine.MVVM.Core should remain as platform-neutral as possible.
WPF-specific responsibilities such as FrameworkElement.Loaded, EventManager, and View runtime binding should not live in the core package. This package isolates those concerns into a dedicated WPF layer.
Main type
DreamineAppBuilder
The DreamineAppBuilder initializes the Dreamine MVVM runtime for a WPF application.
It performs the following steps:
- registers View ↔ ViewModel mappings
- auto-registers types into
DMContainer - hooks the WPF
Loadedevent to assignDataContextautomatically when needed
Usage
Call DreamineAppBuilder.Initialize(...) once during application startup.
using System.Reflection;
using System.Windows;
using Dreamine.MVVM.Wpf;
namespace SampleApp;
public partial class App : Application
{
protected override void OnStartup(StartupEventArgs e)
{
base.OnStartup(e);
DreamineAppBuilder.Initialize(Assembly.GetExecutingAssembly());
}
}
Project structure guideline
Recommended responsibility boundaries:
Dreamine.MVVM.Core- container
- command infrastructure
- platform-neutral MVVM runtime support
Dreamine.MVVM.ViewModelsViewModelBase
Dreamine.MVVM.Locators- ViewModel resolution and mapping logic
Dreamine.MVVM.Wpf- WPF startup/bootstrap/runtime integration
Target framework
net8.0-windows- WPF enabled
License
MIT License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows7.0 is compatible. net9.0-windows was computed. net10.0-windows was computed. |
-
net8.0-windows7.0
- Dreamine.MVVM.Core (>= 1.0.12)
- Dreamine.MVVM.Extensions (>= 1.0.4)
- Dreamine.MVVM.Locators (>= 1.0.9)
- Dreamine.MVVM.Locators.Wpf (>= 1.0.6)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Dreamine.MVVM.Wpf:
| Package | Downloads |
|---|---|
|
Dreamine.MVVM.FullKit
All-in-one package for Dreamine MVVM on WPF. Includes core MVVM modules and automatic source generator integration. |
GitHub repositories
This package is not used by any popular GitHub repositories.