HB.MVVM
1.1.0
See the version list below for details.
dotnet add package HB.MVVM --version 1.1.0
NuGet\Install-Package HB.MVVM -Version 1.1.0
<PackageReference Include="HB.MVVM" Version="1.1.0" />
paket add HB.MVVM --version 1.1.0
#r "nuget: HB.MVVM, 1.1.0"
// Install HB.MVVM as a Cake Addin #addin nuget:?package=HB.MVVM&version=1.1.0 // Install HB.MVVM as a Cake Tool #tool nuget:?package=HB.MVVM&version=1.1.0
为更优雅的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 | Versions 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. |
-
.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 | 531 | 11/12/2023 |
1.1.0 | 484 | 9/29/2023 |
1.0.23 | 801 | 5/25/2023 |
1.0.22 | 619 | 5/25/2023 |
1.0.20 | 674 | 4/7/2023 |
1.0.19 | 661 | 4/6/2023 |
1.0.18 | 696 | 4/2/2023 |
1.0.17 | 705 | 4/1/2023 |
1.0.16 | 744 | 3/26/2023 |
1.0.15 | 702 | 3/10/2023 |
1.0.14 | 731 | 3/8/2023 |
1.0.13 | 730 | 2/21/2023 |
1.0.12 | 715 | 2/13/2023 |
1.0.11 | 921 | 1/29/2023 |
1.0.10 | 801 | 1/11/2023 |
1.0.9 | 809 | 12/6/2022 |
1.0.8 | 832 | 12/6/2022 |
1.0.7 | 847 | 11/15/2022 |
1.0.6 | 844 | 11/13/2022 |
1.0.4 | 901 | 9/24/2021 |
1.0.3 | 810 | 9/22/2021 |
为更优雅的MVVM写法而生