![]() |
VOOZH | about |
dotnet add package ReactiveProperty.Core --version 9.8.0
NuGet\Install-Package ReactiveProperty.Core -Version 9.8.0
<PackageReference Include="ReactiveProperty.Core" Version="9.8.0" />
<PackageVersion Include="ReactiveProperty.Core" Version="9.8.0" />Directory.Packages.props
<PackageReference Include="ReactiveProperty.Core" />Project file
paket add ReactiveProperty.Core --version 9.8.0
#r "nuget: ReactiveProperty.Core, 9.8.0"
#:package ReactiveProperty.Core@9.8.0
#addin nuget:?package=ReactiveProperty.Core&version=9.8.0Install as a Cake Addin
#tool nuget:?package=ReactiveProperty.Core&version=9.8.0Install as a Cake Tool
ReactiveProperty provides MVVM and asynchronous support features under Reactive Extensions. Target framework is .NET 8.0+, .NET Framework 4.7.2 and .NET Standard 2.0.
π alternate text is missing from this package README image
π alternate text is missing from this package README image
π Build and Release
π ReactiveProperty overview
If youβre developing a new application, consider using R3 instead of ReactiveProperty. R3, redesigned by the original author, aligns with the current .NET ecosystem and offers most of the features found in ReactiveProperty.
ReactiveProperty is a very powerful and simple library.
This sample app's ViewModel code is as below:
public class MainPageViewModel
{
public ReactivePropertySlim<string> Input { get; }
public ReadOnlyReactivePropertySlim<string> Output { get; }
public MainPageViewModel()
{
Input = new ReactivePropertySlim<string>("");
Output = Input
.Delay(TimeSpan.FromSeconds(1))
.Select(x => x.ToUpper())
.ObserveOnDispatcher()
.ToReadOnlyReactivePropertySlim();
}
}
It is really simple and understandable (I think!). Because there are NOT any base classes and interfaces. Just has declarative code between Input property and Output property.
All steps are written in the "Getting Started" section in the ReactiveProperty documentation.
The concept of ReactiveProperty is simple that is a core class what name is ReactiveProperty[Slim], it is just a wrap class what has a value, and implements IObservable<T> and INotifyPropertyChanged, IObservable<T> is for connect change event of the property value to Rx LINQ method chane, INotifyPropertyChanged is for data binding system such as WPF, WinUI and MAUI.
And an important concept of ReactiveProperty is "Fun programing". ViewModel code with ReactiveProperty is very simple.
ViewModel's popular implementation:
public class AViewModel : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
private string _name;
public string Name
{
get => _name;
set
{
_name = value;
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Name)));
// Update a command status
DoSomethingCommand.RaiseCanExecuteChanged();
}
}
private string _memo;
public string Memo
{
get => _memo;
set
{
_memo = value;
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Memo)));
// Update a command status
DoSomethingCommand.RaiseCanExecuteChanged();
}
}
// DelegateCommand is plane ICommand implementation.
public DelegateCommand DoSomethingCommand { get; }
public AViewModel()
{
DoSomethingCommand = new DelegateCommand(
() => { ... },
() => !string.IsNullOrEmpty(Name) && !string.IsNullOrEmpty(Memo)
);
}
}
Binding code:
<TextBlock Text="{Binding Name}">
<TextBlock Text="{Binding Memo}">
ViewModel's implementation using ReactiveProperty:
public class AViewModel
{
public ValidatableReactiveProperty<string> Name { get; }
public ValidatableReactiveProperty<string> Memo { get; }
public ReactiveCommandSlim DoSomethingCommand { get; }
public AViewModel()
{
Name = new ValidatableReactiveProperty<string>("",
x => string.IsNullOrEmpty(x) ? "Invalid value" : null);
Memo = new ValidatableReactiveProperty<string>("",
x => string.IsNullOrEmpty(x) ? "Invalid value" : null);
DoSomethingCommand = new[]
{
Name.ObserveHasErrors,
Memo.ObserveHasErrors,
}
.CombineLatestValuesAreAllFalse()
.ToReactiveCommand()
.WithSubscribe(() => { ... });
}
}
Binding code:
<TextBlock Text="{Binding Name.Value}">
<TextBlock Text="{Binding Memo.Value}">
It's very simple.
ReactiveProperty doesn't provide base class by ViewModel, which means that ReactiveProperty can be used together with another MVVM libraries such as Prism, Microsoft.Toolkit.Mvvm and etc.
ReactiveProperty documentation
| Package Id | Version and downloads | Description |
|---|---|---|
| ReactiveProperty | π alternate text is missing from this package README image π alternate text is missing from this package README image |
The package includes all core features. |
| ReactiveProperty.Core | π alternate text is missing from this package README image π alternate text is missing from this package README image |
The package includes minimum classes such as ReactivePropertySlim<T> and ReadOnlyReactivePropertySlim<T>. And this doesn't have any dependency even System.Reactive. If you don't need Rx features, then it fits. |
| ReactiveProperty.WPF | π alternate text is missing from this package README image π alternate text is missing from this package README image |
The package includes EventToReactiveProperty and EventToReactiveCommand for WPF. This is for .NET 6 or later and .NET Framework 4.7.2 or later. |
| ReactiveProperty.Blazor | π alternate text is missing from this package README image π alternate text is missing from this package README image |
The package includes validation support for EditForm component of Blazor with ReactiveProperty validation feature for InteractiveServer render mode. This is for .NET 8.0 or later. |
The following packages are no longer supported.
| Package Id | Version and downloads | Description |
|---|---|---|
| ReactiveProperty.UWP | π alternate text is missing from this package README image π alternate text is missing from this package README image |
The package includes EventToReactiveProperty and EventToReactiveCommand for UWP. |
| ReactiveProperty.XamarinAndroid | π alternate text is missing from this package README image π alternate text is missing from this package README image |
The package includes many extension methods to create IObservable from events for Xamarin.Android native. |
| ReactiveProperty.XamariniOS | π alternate text is missing from this package README image π alternate text is missing from this package README image |
The package includes many extension methods to bind ReactiveProperty and ReactiveCommand to Xamarin.iOS native controls. |
I'm not watching StackOverflow and other forums to support ReactiveProperty, so please feel free to post questions at Github issues. I'm available Japanese(1st language) and English(2nd language).
If too many questions are posted, then I plan to separate posting place about feature requests, issues, questions.
Yoshifumi Kawai a.k.a. @neuecc is Founder/CEO/CTO of Cysharp, Inc in Tokyo, Japan. Awarded Microsoft MVP for Developer Technologies since April, 2011. He is an original owner of ReactiveProperty.
Takaaki Suzuki a.k.a. @xin9le software developer in Fukui, Japan. Awarded Microsoft MVP for Developer Technologies since July, 2012.
Kazuki Ota a.k.a. @okazuki software developer in Tokyo, Japan. Awarded Microsoft MVP for Windows Development since July 2011 to Feb 2017. Now, working at Microsoft Japan.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 is compatible. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 2 NuGet packages that depend on ReactiveProperty.Core:
| Package | Downloads |
|---|---|
|
ReactiveProperty
ReactiveProperty is MVVM and Asynchronous Extensions for Reactive Extensions(System.Reactive). |
|
|
ReduxDotnet
Type safe Redux implementation for .NET 6. |
Showing the top 2 popular GitHub repositories that depend on ReactiveProperty.Core:
| Repository | Stars |
|---|---|
|
leezer3/OpenBVE
OpenBVE- A free train simulator
|
|
|
systemsomicslab/MsdialWorkbench
Universal workbench incorporating msdial, msfinder, and mrmprobs
|
| Version | Downloads | Last Updated |
|---|---|---|
| 9.8.0 | 60,133 | 11/15/2025 |
| 9.7.0 | 92,915 | 1/27/2025 |
| 9.7.0-pre2 | 274 | 1/27/2025 |
| 9.7.0-pre1 | 282 | 1/24/2025 |
| 9.6.0 | 103,314 | 7/14/2024 |
| 9.5.0 | 103,010 | 2/28/2024 |
| 9.4.1 | 8,237 | 2/12/2024 |
| 9.4.0 | 2,399 | 2/11/2024 |
| 9.4.0-pre8 | 805 | 12/21/2023 |
| 9.4.0-pre7 | 559 | 12/21/2023 |
| 9.4.0-pre6 | 558 | 12/21/2023 |
| 9.4.0-pre5 | 560 | 12/21/2023 |
| 9.4.0-pre4 | 511 | 12/21/2023 |
| 9.3.4 | 41,679 | 10/30/2023 |
| 9.3.4-pre202310290551 | 642 | 10/29/2023 |
| 9.3.3 | 4,891 | 10/10/2023 |
| 9.3.2 | 9,979 | 9/25/2023 |
| 9.3.2-pre202309140728 | 738 | 9/14/2023 |
| 9.3.1 | 16,992 | 8/11/2023 |
| 9.3.0 | 4,730 | 7/31/2023 |