From 5709843d8f2f6bfe3c3f94c57bcefce34696703f Mon Sep 17 00:00:00 2001 From: "John M. Baughman" <1634414+johnmbaughman@users.noreply.github.com> Date: Thu, 13 Jun 2024 09:54:00 -0500 Subject: [PATCH] Update README.md --- CommunityToolkitExample/README.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/CommunityToolkitExample/README.md b/CommunityToolkitExample/README.md index 24c8663d8..c3a712868 100644 --- a/CommunityToolkitExample/README.md +++ b/CommunityToolkitExample/README.md @@ -2,8 +2,6 @@ This small demo gives an example of using the `CommunityToolkit.MVVM` framework's `ObservableObject`, `ObservableProperty`, and `IRecipient` in conjunction with `Microsoft.Extensions.DependencyInjection`. -### Startup - Right away we use IoC to load our views and view models. ``` csharp @@ -58,10 +56,9 @@ internal partial class LoginView : IRecipient> } ``` -Momentarily slipping over to the view model, all bindable properties use some form of `ObservableProperty` with the class deriving from `ObservableObject`. Commands are of the `RelayCommand` type. +Momentarily slipping over to the view model, all bindable properties use some form of `ObservableProperty` with the class deriving from `ObservableObject`. Commands are of the `RelayCommand` type. The use of `ObservableProperty` generates the code for handling `INotifyPropertyChanged` and `INotifyPropertyChanging`. ``` csharp - internal partial class LoginViewModel : ObservableObject { ... @@ -155,5 +152,3 @@ public void Receive (Message message) Application.Refresh (); } ``` - -There are other ways of handling cross-thread communication, this gives just one example.