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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Dreamine.MVVM.Wpf" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Dreamine.MVVM.Wpf" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Dreamine.MVVM.Wpf" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Dreamine.MVVM.Wpf --version 1.0.2
                    
#r "nuget: Dreamine.MVVM.Wpf, 1.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Dreamine.MVVM.Wpf@1.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Dreamine.MVVM.Wpf&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Dreamine.MVVM.Wpf&version=1.0.2
                    
Install as a Cake Tool

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 DataContext attachment 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:

  1. registers View ↔ ViewModel mappings
  2. auto-registers types into DMContainer
  3. hooks the WPF Loaded event to assign DataContext automatically 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.ViewModels
    • ViewModelBase
  • 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 Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.

Version Downloads Last Updated
1.0.2 121 5/9/2026
1.0.1 98 4/30/2026
1.0.0 111 3/21/2026