mirror of
https://github.com/holgerb83/ModernWpfPlayground.git
synced 2025-04-19 23:03:49 +02:00
ugly fix for the setter changed method
This commit is contained in:
parent
8c87abeb1d
commit
1cf692547f
@ -43,8 +43,12 @@ namespace ModernWpfPlayground.MvvmStuff
|
|||||||
if (predicate != null) keys = keys.Where(predicate);
|
if (predicate != null) keys = keys.Where(predicate);
|
||||||
foreach (var key in keys)
|
foreach (var key in keys)
|
||||||
{
|
{
|
||||||
|
var currentValue = ObjectAccessor[key];
|
||||||
_values.Remove(key);
|
_values.Remove(key);
|
||||||
RaisePropertyChanged(key);
|
var newValue = ObjectAccessor[key];
|
||||||
|
if (Equals(currentValue, newValue)) continue;
|
||||||
|
_values.Add(key, currentValue);
|
||||||
|
ObjectAccessor[key] = newValue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user