PropertyChanged
Prism
PropertyChanged | Prism | |
---|---|---|
14 | 5 | |
1,831 | 6,111 | |
0.7% | 0.5% | |
8.5 | 9.4 | |
8 days ago | 23 days ago | |
C# | C# | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
PropertyChanged
-
Window Forms change notification
Add [AddINotifyPropertyChangedInterface] attribute to the class for change notification.
-
What does Realm.Fody do?
All the weaving libraries (also called weavers or addin) using Fody need to have the .Fody suffix, so it's quite easy to recognize them. As an example, if you ever had to implement INotifyPropertyChanged manually in a class with dozens of properties you would probably welcome weaving (and Fody) with open arms. By creating all the plumbing code directly in IL, libraries like PropertyChanged.Fody allows to inject the necessary notification code without the need to modify anything in the original source code.
-
[Library] Call all IEnumerable<T> via a single injected T
You can rewrite auto-props (as used this this lib https://github.com/Fody/PropertyChanged) with Fody.
-
Double programming meme
If you're not familiar with Fody and specifically the PropertyChanged weaver, I highly recommend checking it out: https://github.com/Fody/PropertyChanged
-
Is it just me, or is WPF just harder to work with than WinForms?
Now the ugly part - you need to implement INotifyPropertyChanged. It can be done either manually, or automated with this or this
-
What can be done to make the switch from WinForms to WPF easier?
https://github.com/Fody/PropertyChanged and Android background makes WPF pretty easy. At least the surface level stuff.
-
Automated nameof(Field)
If you really don't want to deal with it ever again, just add this Fody - PropertyChanged NuGet package. Any class that inherits from INotifyPropertyChanged will be updated at compile time to inject in the boilerplate code for handling the property change and you never even need to think about it again. All you need to do is just add plain old properties. The only downside that some people see is that it is not immediately transparent as the change notification code is injected in during compile and is not in source code.
-
We Just Gave $154,999.89 to Open Source Maintainers
And GitHub is the place where employees of billion dollar companies pester unpaid maintainers because they won’t support a 12 year old version of .NET
https://github.com/Fody/PropertyChanged/issues/270#issuecomm...
-
Can anyone give me an example of how they use fody to simplify the Get;Set; with property changed?
If you need more info, check the docs https://github.com/Fody/PropertyChanged
Prism
- Help needed when applying clean MVVM pattern in WPF
- Xamarin Shell in Prism Navigation
-
Creating such a small class would make the code weird
It looks to me like you're trying to avoid setting a property if the value won't change, and you want to know if it did change. Here's an alternate approach which you could take https://github.com/PrismLibrary/Prism/blob/master/src/Prism.Core/Mvvm/BindableBase.cs
-
I don't know why my Autofac is throwing an exception with WPF
See https://github.com/PrismLibrary/Prism/blob/master/src/Wpf/Prism.Wpf/Mvvm/ViewModelLocator.cs
-
Repeating myself implementing INotifyPropertyChanged
The Prism Library has a base class you can implement called BindableBase for this exact purpose of not copying and pasting the same code over and over again.
What are some alternatives?
ReactiveUI.Fody - C# Fody extension to generate RaisePropertyChange notifications for properties and ObservableAsPropertyHelper properties.
MVVMCross - The .NET MVVM framework for cross-platform solutions, including Android, iOS, MacCatalyst, macOS, tvOS, WPF, WinUI
PropertyChanged.SourceGenerator - Powerful INotifyPropertyChanged / INotifyPropertyChanging Source Generator, which generates INPC boilerplate for you as part of your build. Supports features such as automatic and manual dependencies between properties, notifications when specific properties change, and more.
ReactiveUI - An advanced, composable, functional reactive model-view-viewmodel framework for all .NET platforms that is inspired by functional reactive programming. ReactiveUI allows you to abstract mutable state away from your user interfaces, express the idea around a feature in one readable place and improve the testability of your application.
sentry-symfony - The official Symfony SDK for Sentry (sentry.io)
MVVM Light Toolkit - The main purpose of the toolkit is to accelerate the creation and development of MVVM applications in Xamarin.Android, Xamarin.iOS, Xamarin.Forms, Windows 10 UWP, Windows Presentation Foundation (WPF), Silverlight, Windows Phone.
sentry-javascript - Official Sentry SDKs for JavaScript
Caliburn.Micro - A small, yet powerful framework, designed for building applications across all XAML platforms. Its strong support for MV* patterns will enable you to build your solution quickly, without the need to sacrifice code quality or testability.
UWP Community Toolkit - The Windows Community Toolkit is a collection of helpers, extensions, and custom controls. It simplifies and demonstrates common developer tasks building .NET apps with UWP and the Windows App SDK / WinUI 3 for Windows 10 and Windows 11. The toolkit is part of the .NET Foundation.
contact - Retryable HTTP client in Go.
Avalonia - Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology
FreshMvvm - FreshMvvm is a super light Mvvm Framework designed specifically for Xamarin.Forms. It's designed to be Easy, Simple and Flexible.