ObservableHelpers 2.0.6-prerelease

This is a prerelease version of ObservableHelpers.
There is a newer version of this package available.
See the version list below for details.
dotnet add package ObservableHelpers --version 2.0.6-prerelease
NuGet\Install-Package ObservableHelpers -Version 2.0.6-prerelease
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="ObservableHelpers" Version="2.0.6-prerelease" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ObservableHelpers --version 2.0.6-prerelease
#r "nuget: ObservableHelpers, 2.0.6-prerelease"
#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 ObservableHelpers as a Cake Addin
#addin nuget:?package=ObservableHelpers&version=2.0.6-prerelease&prerelease

// Install ObservableHelpers as a Cake Tool
#tool nuget:?package=ObservableHelpers&version=2.0.6-prerelease&prerelease

Observable Helpers

Observable helpers with short-and-easy and UI-safe property implementations. Can be used for any MVVM software architectural applications.

NuGets

Name Info
ObservableHelpers NuGet

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!.

paypal

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 550 9/9/2022
2.0.9 579 9/8/2022
2.0.8 387 9/8/2022
2.0.7 409 9/8/2022
2.0.6 386 9/5/2022
2.0.6-prerelease.14 99 9/5/2022
2.0.6-prerelease.13 94 9/5/2022
2.0.6-prerelease.11 91 9/5/2022
2.0.6-prerelease.10 90 9/5/2022
2.0.6-prerelease.8 95 9/5/2022
2.0.6-prerelease.7 94 9/5/2022
2.0.6-prerelease.6 88 9/5/2022
2.0.6-prerelease.4 96 9/5/2022
2.0.6-prerelease 123 9/5/2022
2.0.5 366 9/4/2022
2.0.3 390 9/4/2022
2.0.1 401 9/4/2022
1.6.2 453 4/23/2022
1.6.1 420 4/22/2022
1.6.0 448 4/22/2022
1.5.5 1,551 3/7/2022
1.5.4 410 3/7/2022
1.5.3 386 3/7/2022
1.5.2 413 3/5/2022
1.5.1 421 2/23/2022
1.5.0 1,131 2/22/2022
1.4.8 684 2/21/2022
1.4.7 408 2/19/2022
1.4.6 412 2/19/2022
1.4.5 644 1/9/2022
1.4.4 387 1/9/2022
1.4.3 913 1/4/2022
1.4.2 393 1/2/2022
1.4.1 274 1/1/2022
1.4.0 272 1/1/2022
1.3.6 370 1/1/2022
1.3.5 461 12/25/2021
1.3.4 416 12/13/2021
1.3.3 286 12/6/2021
1.3.2 364 11/16/2021
1.3.1 342 11/16/2021
1.3.0 314 11/14/2021
1.2.7 315 11/10/2021
1.2.6 381 11/8/2021
1.2.5 303 11/3/2021
1.2.4 335 11/2/2021
1.2.3 342 10/26/2021
1.2.2 371 10/25/2021
1.2.1 312 10/21/2021
1.2.0 292 10/21/2021
1.1.12 1,380 9/1/2021
1.1.11 310 9/1/2021
1.1.10 308 9/1/2021
1.1.9 318 9/1/2021
1.1.8 962 8/26/2021
1.1.7 324 8/26/2021
1.1.6 321 8/26/2021
1.1.5 317 8/26/2021
1.1.4 328 8/26/2021
1.1.3 461 8/25/2021
1.1.2 311 8/25/2021
1.1.1 305 8/25/2021
1.1.0 300 8/25/2021
1.0.92 895 8/18/2021
1.0.91 882 8/9/2021
1.0.90 590 8/4/2021
1.0.89 443 7/19/2021
1.0.88 315 7/19/2021
1.0.87 1,016 7/3/2021
1.0.86 456 7/2/2021
1.0.85 384 7/1/2021
1.0.84 485 6/30/2021
1.0.83 343 6/28/2021
1.0.82 326 6/28/2021
1.0.81 633 6/27/2021
1.0.80 444 6/27/2021
1.0.79 450 6/27/2021
1.0.78 343 6/16/2021
1.0.77 1,035 6/16/2021
1.0.76 587 6/15/2021
1.0.75 711 6/15/2021
1.0.74 365 6/15/2021
1.0.73 380 6/15/2021
1.0.72 391 6/15/2021
1.0.71 380 6/15/2021
1.0.70 573 6/15/2021
1.0.69 337 6/15/2021
1.0.68 478 6/15/2021
1.0.67 390 6/14/2021
1.0.66 389 6/14/2021
1.0.65 619 6/14/2021
1.0.64 477 6/13/2021
1.0.63 341 6/13/2021
1.0.62 354 6/13/2021
1.0.61 389 6/13/2021
1.0.60 457 6/13/2021
1.0.59 353 6/13/2021
1.0.58 666 6/13/2021
1.0.57 499 6/12/2021
1.0.56 632 6/12/2021
1.0.55 406 6/12/2021
1.0.54 1,125 6/10/2021
1.0.53 387 6/10/2021
1.0.52 417 6/10/2021
1.0.51 367 6/10/2021
1.0.49 379 6/10/2021
1.0.48 371 6/9/2021
1.0.47 314 6/9/2021
1.0.46 306 6/9/2021
1.0.45 301 6/9/2021
1.0.44 305 6/9/2021
1.0.43 1,415 6/8/2021
1.0.42 1,343 6/6/2021
1.0.41 447 6/6/2021
1.0.40 447 6/6/2021
1.0.39 453 6/6/2021
1.0.38 323 6/6/2021
1.0.37 467 6/6/2021
1.0.36 343 6/6/2021
1.0.35 316 6/6/2021
1.0.34 430 6/6/2021
1.0.33 339 6/6/2021
1.0.32 598 6/5/2021
1.0.31 747 6/5/2021
1.0.30 517 6/5/2021
1.0.29 449 6/5/2021
1.0.28 481 6/4/2021
1.0.27 541 6/4/2021
1.0.26 303 6/4/2021
1.0.25 342 6/4/2021
1.0.24 349 6/4/2021
1.0.23 480 6/3/2021
1.0.22 791 6/3/2021
1.0.21 335 6/3/2021
1.0.20 671 6/2/2021
1.0.19 639 6/2/2021
1.0.18 322 6/2/2021
1.0.17 327 6/2/2021
1.0.16 1,959 5/20/2021
1.0.15 313 5/19/2021
1.0.14 318 5/18/2021
1.0.13 301 5/18/2021
1.0.12 332 5/18/2021
1.0.11 317 5/17/2021
1.0.10 745 5/13/2021
1.0.9 443 5/13/2021
1.0.8 314 5/13/2021
1.0.7 613 5/11/2021
1.0.6 291 5/11/2021
1.0.5 293 5/11/2021
1.0.4 306 5/11/2021
1.0.3 442 5/8/2021
1.0.2 335 5/8/2021
1.0.1 323 5/8/2021
1.0.0 423 5/8/2021

* Introduced source generators