ObservableHelpers 2.0.6-prerelease.13
See the version list below for details.
dotnet add package ObservableHelpers --version 2.0.6-prerelease.13
NuGet\Install-Package ObservableHelpers -Version 2.0.6-prerelease.13
<PackageReference Include="ObservableHelpers" Version="2.0.6-prerelease.13" />
paket add ObservableHelpers --version 2.0.6-prerelease.13
#r "nuget: ObservableHelpers, 2.0.6-prerelease.13"
// Install ObservableHelpers as a Cake Addin #addin nuget:?package=ObservableHelpers&version=2.0.6-prerelease.13&prerelease // Install ObservableHelpers as a Cake Tool #tool nuget:?package=ObservableHelpers&version=2.0.6-prerelease.13&prerelease
Observable Helpers
Observable helpers with source generator and UI-safe property implementations. Can be used for any MVVM software architectural applications.
NuGets
Name | Info |
---|---|
ObservableHelpers |
Installation
// Install release version
Install-Package ObservableHelpers
// Install pre-release version
Install-Package ObservableHelpers -pre
Supported frameworks
.NET Standard 2.0 and above - see https://github.com/dotnet/standard/blob/master/docs/versions.md for compatibility matrix
Get Started
All observable events are executed on thread that was used to create the object instance. To use in UI safe updates, create the object instances at the UI thread or manually configure the ISyncObject.SyncOperation to use UI thread.
Usage
ObservableObject Sample
using ObservableHelpers;
namespace YourNamespace
{
[ObservableObject]
public class Dinosaur : ObservableObject
{
[ObservableProperty]
string? name;
[ObservableProperty]
string? family;
[ObservableProperty]
int Height;
}
}
UI safe
using ObservableHelpers;
namespace YourNamespace
{
public class Program
{
private Dinosaur dinosaur;
public void UIThread()
{
dinosaur = new Dinosaur(); // Must be created on UI thread to synchronize events
dinosaur.SynchronizeChangedEvent = true;
}
public void BackgroundThread()
{
dinosaur.PropertyChanged += (s, e) =>
{
// Executes on UI thread if dinosaur.SynchronizeChangedEvent is true (default false)
}
dinosaur.SynchronizedPropertyChanged += (s, e) =>
{
// Executed on UI thread
}
dinosaur.UnsynchronizedPropertyChanged += (s, e) =>
{
// Executed on current thread
}
dinosaur.Name = "Megalosaurus";
}
}
}
Code & Inspiration from the following:
Want To Support This Project?
All I have ever asked is to be active by submitting bugs, features, and sending those pull requests down!.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. 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. |
.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 is compatible. |
.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
- LockerHelpers (>= 1.0.3)
- Microsoft.Bcl.AsyncInterfaces (>= 6.0.0)
- SynchronizationContextHelpers (>= 1.0.5)
- System.ComponentModel.Annotations (>= 5.0.0)
- System.Memory (>= 4.5.5)
- System.Runtime.CompilerServices.Unsafe (>= 6.0.0)
-
.NETStandard 2.1
- LockerHelpers (>= 1.0.3)
- SynchronizationContextHelpers (>= 1.0.5)
- System.ComponentModel.Annotations (>= 5.0.0)
- System.Runtime.CompilerServices.Unsafe (>= 6.0.0)
-
net6.0
- LockerHelpers (>= 1.0.3)
- SynchronizationContextHelpers (>= 1.0.5)
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 |
---|---|---|
2.0.10 | 662 | 9/9/2022 |
2.0.9 | 608 | 9/8/2022 |
2.0.8 | 413 | 9/8/2022 |
2.0.7 | 445 | 9/8/2022 |
2.0.6 | 415 | 9/5/2022 |
2.0.6-prerelease.14 | 117 | 9/5/2022 |
2.0.6-prerelease.13 | 103 | 9/5/2022 |
2.0.6-prerelease.11 | 101 | 9/5/2022 |
2.0.6-prerelease.10 | 100 | 9/5/2022 |
2.0.6-prerelease.8 | 107 | 9/5/2022 |
2.0.6-prerelease.7 | 106 | 9/5/2022 |
2.0.6-prerelease.6 | 106 | 9/5/2022 |
2.0.6-prerelease.4 | 114 | 9/5/2022 |
2.0.6-prerelease | 151 | 9/5/2022 |
2.0.5 | 394 | 9/4/2022 |
2.0.3 | 418 | 9/4/2022 |
2.0.1 | 437 | 9/4/2022 |
1.6.2 | 484 | 4/23/2022 |
1.6.1 | 452 | 4/22/2022 |
1.6.0 | 484 | 4/22/2022 |
1.5.5 | 1,643 | 3/7/2022 |
1.5.4 | 442 | 3/7/2022 |
1.5.3 | 424 | 3/7/2022 |
1.5.2 | 449 | 3/5/2022 |
1.5.1 | 451 | 2/23/2022 |
1.5.0 | 1,178 | 2/22/2022 |
1.4.8 | 724 | 2/21/2022 |
1.4.7 | 435 | 2/19/2022 |
1.4.6 | 449 | 2/19/2022 |
1.4.5 | 691 | 1/9/2022 |
1.4.4 | 439 | 1/9/2022 |
1.4.3 | 1,001 | 1/4/2022 |
1.4.2 | 439 | 1/2/2022 |
1.4.1 | 311 | 1/1/2022 |
1.4.0 | 315 | 1/1/2022 |
1.3.6 | 405 | 1/1/2022 |
1.3.5 | 507 | 12/25/2021 |
1.3.4 | 449 | 12/13/2021 |
1.3.3 | 326 | 12/6/2021 |
1.3.2 | 395 | 11/16/2021 |
1.3.1 | 373 | 11/16/2021 |
1.3.0 | 351 | 11/14/2021 |
1.2.7 | 354 | 11/10/2021 |
1.2.6 | 410 | 11/8/2021 |
1.2.5 | 335 | 11/3/2021 |
1.2.4 | 367 | 11/2/2021 |
1.2.3 | 373 | 10/26/2021 |
1.2.2 | 410 | 10/25/2021 |
1.2.1 | 348 | 10/21/2021 |
1.2.0 | 324 | 10/21/2021 |
1.1.12 | 1,492 | 9/1/2021 |
1.1.11 | 337 | 9/1/2021 |
1.1.10 | 341 | 9/1/2021 |
1.1.9 | 345 | 9/1/2021 |
1.1.8 | 1,034 | 8/26/2021 |
1.1.7 | 351 | 8/26/2021 |
1.1.6 | 348 | 8/26/2021 |
1.1.5 | 342 | 8/26/2021 |
1.1.4 | 361 | 8/26/2021 |
1.1.3 | 505 | 8/25/2021 |
1.1.2 | 340 | 8/25/2021 |
1.1.1 | 334 | 8/25/2021 |
1.1.0 | 330 | 8/25/2021 |
1.0.92 | 975 | 8/18/2021 |
1.0.91 | 967 | 8/9/2021 |
1.0.90 | 642 | 8/4/2021 |
1.0.89 | 478 | 7/19/2021 |
1.0.88 | 347 | 7/19/2021 |
1.0.87 | 1,073 | 7/3/2021 |
1.0.86 | 496 | 7/2/2021 |
1.0.85 | 412 | 7/1/2021 |
1.0.84 | 532 | 6/30/2021 |
1.0.83 | 374 | 6/28/2021 |
1.0.82 | 364 | 6/28/2021 |
1.0.81 | 685 | 6/27/2021 |
1.0.80 | 472 | 6/27/2021 |
1.0.79 | 487 | 6/27/2021 |
1.0.78 | 373 | 6/16/2021 |
1.0.77 | 1,083 | 6/16/2021 |
1.0.76 | 617 | 6/15/2021 |
1.0.75 | 766 | 6/15/2021 |
1.0.74 | 407 | 6/15/2021 |
1.0.73 | 412 | 6/15/2021 |
1.0.72 | 423 | 6/15/2021 |
1.0.71 | 410 | 6/15/2021 |
1.0.70 | 627 | 6/15/2021 |
1.0.69 | 367 | 6/15/2021 |
1.0.68 | 505 | 6/15/2021 |
1.0.67 | 421 | 6/14/2021 |
1.0.66 | 420 | 6/14/2021 |
1.0.65 | 665 | 6/14/2021 |
1.0.64 | 525 | 6/13/2021 |
1.0.63 | 379 | 6/13/2021 |
1.0.62 | 384 | 6/13/2021 |
1.0.61 | 419 | 6/13/2021 |
1.0.60 | 497 | 6/13/2021 |
1.0.59 | 390 | 6/13/2021 |
1.0.58 | 712 | 6/13/2021 |
1.0.57 | 535 | 6/12/2021 |
1.0.56 | 667 | 6/12/2021 |
1.0.55 | 435 | 6/12/2021 |
1.0.54 | 1,197 | 6/10/2021 |
1.0.53 | 415 | 6/10/2021 |
1.0.52 | 446 | 6/10/2021 |
1.0.51 | 404 | 6/10/2021 |
1.0.49 | 406 | 6/10/2021 |
1.0.48 | 401 | 6/9/2021 |
1.0.47 | 344 | 6/9/2021 |
1.0.46 | 335 | 6/9/2021 |
1.0.45 | 336 | 6/9/2021 |
1.0.44 | 337 | 6/9/2021 |
1.0.43 | 1,514 | 6/8/2021 |
1.0.42 | 1,448 | 6/6/2021 |
1.0.41 | 478 | 6/6/2021 |
1.0.40 | 478 | 6/6/2021 |
1.0.39 | 490 | 6/6/2021 |
1.0.38 | 360 | 6/6/2021 |
1.0.37 | 504 | 6/6/2021 |
1.0.36 | 371 | 6/6/2021 |
1.0.35 | 349 | 6/6/2021 |
1.0.34 | 463 | 6/6/2021 |
1.0.33 | 370 | 6/6/2021 |
1.0.32 | 638 | 6/5/2021 |
1.0.31 | 793 | 6/5/2021 |
1.0.30 | 546 | 6/5/2021 |
1.0.29 | 486 | 6/5/2021 |
1.0.28 | 523 | 6/4/2021 |
1.0.27 | 592 | 6/4/2021 |
1.0.26 | 329 | 6/4/2021 |
1.0.25 | 367 | 6/4/2021 |
1.0.24 | 379 | 6/4/2021 |
1.0.23 | 515 | 6/3/2021 |
1.0.22 | 862 | 6/3/2021 |
1.0.21 | 364 | 6/3/2021 |
1.0.20 | 726 | 6/2/2021 |
1.0.19 | 696 | 6/2/2021 |
1.0.18 | 353 | 6/2/2021 |
1.0.17 | 355 | 6/2/2021 |
1.0.16 | 2,096 | 5/20/2021 |
1.0.15 | 347 | 5/19/2021 |
1.0.14 | 353 | 5/18/2021 |
1.0.13 | 332 | 5/18/2021 |
1.0.12 | 361 | 5/18/2021 |
1.0.11 | 346 | 5/17/2021 |
1.0.10 | 818 | 5/13/2021 |
1.0.9 | 484 | 5/13/2021 |
1.0.8 | 341 | 5/13/2021 |
1.0.7 | 668 | 5/11/2021 |
1.0.6 | 317 | 5/11/2021 |
1.0.5 | 322 | 5/11/2021 |
1.0.4 | 335 | 5/11/2021 |
1.0.3 | 489 | 5/8/2021 |
1.0.2 | 368 | 5/8/2021 |
1.0.1 | 353 | 5/8/2021 |
1.0.0 | 465 | 5/8/2021 |
* Introduced source generators