We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I propose to expand the base class with useful functions.
public int FirstProperty { get => GetValue<int>(); set => SetValue(value); }
I think that this method of implementation to simplify the work with properties.
NotifyProperty DependsOnProperty that allow you to keep track of property updates and call PropertyChange for related properties
NotifyProperty
DependsOnProperty
public class MockExtendedViewModel : ObservableObject { [NotifyProperty(nameof(ThirdProperty))] public int FirstProperty { get => GetValue<int>(); set => SetValue(value); } [DependsOnProperty(nameof(FirstProperty))] public int SecondProperty { get => GetValue<int>(); set => SetValue(value); } public int ThirdProperty { get => GetValue<int>(); set => SetValue(value); } }
If you assign a new value to FristProperty, you will also be instantiated by the OnPropertyChanged event for ThirdProperty.
Also trigger events for SecondProperty because it depends on FirstProperty.
@jamesmontemagno If you are interested in this I will do PR I also have such a small library, and I think that this code can be useful.
The text was updated successfully, but these errors were encountered:
If you want to put in a PR i would be interested in what it looks like for sure.
Sorry, something went wrong.
@KSemenenko have you seen the attribute usage in PropertyChanged.Fody?
No branches or pull requests
Description
I propose to expand the base class with useful functions.
AutoProperty Description
I think that this method of implementation to simplify the work with properties.
Attributes Description
NotifyProperty
DependsOnProperty
that allow you to keep track of property updates and call PropertyChange for related properties
If you assign a new value to FristProperty, you will also be instantiated by the OnPropertyChanged event for ThirdProperty.
Also trigger events for SecondProperty because it depends on FirstProperty.
@jamesmontemagno If you are interested in this I will do PR
I also have such a small library, and I think that this code can be useful.
The text was updated successfully, but these errors were encountered: