question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Template10.Validation - IsDirty property

See original GitHub issue

Hi 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:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
JerryNixoncommented, May 19, 2017

… oh crap.

0reactions
JerryNixoncommented, Jul 28, 2017

Version 1.0.2 now in Nuget. Thank you so much.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found