internal void AddPropertyDependency(Rule rule, PropertyPath propertyPath, string tag) { var actionWithTag = new DependencyNode.ActionWithTag(rule.OnInternalDependencyChanged, tag); actionWithTag.Priority = () => rule.Priority; Dependency.AddPropertyDependency(propertyPath, actionWithTag); }
public void StartDirtyTracking() { SafeRecursiveAction( ex => { var actionWithTag = new DependencyNode.ActionWithTag(s => ex.IsDirty = true, ""); ex.Dependency.AddPropertyDependency("*", actionWithTag); ex.IsDirtyTrackingStarted = true; } ); }