HB.MVVM 1.1.1

dotnet add package HB.MVVM --version 1.1.1
NuGet\Install-Package HB.MVVM -Version 1.1.1
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="HB.MVVM" Version="1.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add HB.MVVM --version 1.1.1
#r "nuget: HB.MVVM, 1.1.1"
#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 HB.MVVM as a Cake Addin
#addin nuget:?package=HB.MVVM&version=1.1.1

// Install HB.MVVM as a Cake Tool
#tool nuget:?package=HB.MVVM&version=1.1.1

为更优雅的MVVM写法而生;适用平台: wpf,uwp,xamarin.form
//class ModelA:ViewModelBase    //普通模式
class ModelA:ViewModelBase<ModelA>   //单例模式
{
     public ModelA()
    {
           RegisterChangedEvent(nameof(str),()=>{});//注册属性变化事件
    }
    public string str { get => GetString(“默认值”); set => Set(value); } //带默认值
    public int  age { get => GetInt(); set => Set(value); } //优雅模式
     //命令定义
     public ICommand clickCommand => GetCommand(() =>
     {
     //代码
     });

     }
     //绑定到UI
     this.DataContent=new ModelA();   //新实例
     this.DataContent=ModelA.Instance;   //单例
     ModelA.Instance.Connect(this)//快捷注册
     或在Xaml中绑定

Product Compatible and additional computed target framework versions.
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.5

    • No dependencies.

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.1.1 509 11/12/2023
1.1.0 465 9/29/2023
1.0.23 753 5/25/2023
1.0.22 598 5/25/2023
1.0.20 648 4/7/2023
1.0.19 639 4/6/2023
1.0.18 674 4/2/2023
1.0.17 682 4/1/2023
1.0.16 723 3/26/2023
1.0.15 685 3/10/2023
1.0.14 713 3/8/2023
1.0.13 710 2/21/2023
1.0.12 697 2/13/2023
1.0.11 883 1/29/2023
1.0.10 784 1/11/2023
1.0.9 792 12/6/2022
1.0.8 813 12/6/2022
1.0.7 831 11/15/2022
1.0.6 825 11/13/2022
1.0.4 869 9/24/2021
1.0.3 790 9/22/2021

为更优雅的MVVM写法而生