Cloosom.MVVMDI 1.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Cloosom.MVVMDI --version 1.2.0                
NuGet\Install-Package Cloosom.MVVMDI -Version 1.2.0                
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="Cloosom.MVVMDI" Version="1.2.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Cloosom.MVVMDI --version 1.2.0                
#r "nuget: Cloosom.MVVMDI, 1.2.0"                
#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.
// Install Cloosom.MVVMDI as a Cake Addin
#addin nuget:?package=Cloosom.MVVMDI&version=1.2.0

// Install Cloosom.MVVMDI as a Cake Tool
#tool nuget:?package=Cloosom.MVVMDI&version=1.2.0                

写在前边

在WPF中,使用依赖注入的方式,如果写的viewmodel和view太多,每组都将viewmodel和view进行手动注入,对开发人员来说必然是枯燥且无效的。此外,通常我们将viewmodel和view都是按照XXXViewModel和XXXView进行命名的,如果每次都需要手动绑定,则会麻烦的一批。

1. 基本功能

  • 自动注入View、ViewModel,只需要在类前边加上[HViewModel]等
  • 自动DataContext的绑定
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.8.0 126 9/10/2023
1.7.0 126 9/10/2023 1.7.0 is deprecated because it has critical bugs.
1.6.0 114 9/10/2023
1.5.0 130 7/31/2023
1.4.0 146 7/10/2023
1.3.0 120 6/27/2023
1.2.0 119 6/5/2023
1.0.0 138 5/25/2023