HB.MVVM
1.0.3
See the version list below for details.
dotnet add package HB.MVVM --version 1.0.3
NuGet\Install-Package HB.MVVM -Version 1.0.3
<PackageReference Include="HB.MVVM" Version="1.0.3" />
paket add HB.MVVM --version 1.0.3
#r "nuget: HB.MVVM, 1.0.3"
// Install HB.MVVM as a Cake Addin
#addin nuget:?package=HB.MVVM&version=1.0.3
// Install HB.MVVM as a Cake Tool
#tool nuget:?package=HB.MVVM&version=1.0.3
适用平台: wpf,uwp,xamarin.form
//class ModelA:ViewModelBase //普通模式
class ModelA:ViewModelBase<ModelA> //单例模式
{
public string str { get => Get<string>(“默认值”); set => Set(value); } //带默认值
public string str { get => Get<string>(); set => SetField(value); } //优雅模式
//命令定义
public ICommand clickCommand => GetCommand(() =>
{
//代码
});
}
//绑定到UI
this.DataContent=new ModelA(); //新实例
this.DataContent=ModelA.Instance; //单例
或在Xaml中绑定
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- 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写法而生