Template10.Validation - IsDirty property
See original GitHub issueHi guys, I just started to use this amazing library but I have noticed in the last update in ValidatableModelBase that “IsDirty” property is defined in that way
public bool IsDirty => !Properties.Any(x => x.Value.IsDirty);
Maybe I have a wrong concept of IsDirty (to me it means that any property has changed) but shouldn’t it be in the following way (without the negation operator at the begining):
public bool IsDirty => Properties.Any(x => x.Value.IsDirty);
Or perhaps some of you could give me some clarifications.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
IsDirty flag in the validation sample's ModelBase · Issue #1019
I believe the "IsDirty" property needs to roll up. So, instead of simply saying ... create a fork of template10, fix it in...
Read more >Data validation in UWP | XAML Brewer, by Diederik Krols
In this article we describe how to implement validation of an object –typically an Entity, a Model, or a ViewModel instance- in a...
Read more >SettingsPropertyValue.IsDirty Property
Gets or sets whether the value of a SettingsProperty object has changed.
Read more >0
I want to modify "Template10.Validation" style when Validation error is happened. Here is my Target style. enter image description here. and I ...
Read more >Clarification on when IsDirty is set
I thought IsDirty is set when a property changes in an object, when using managed properties. Isn't the following a valid managed property...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
… oh crap.
Version 1.0.2 now in Nuget. Thank you so much.