Пример #1
0
        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);
        }
Пример #2
0
 public void StartDirtyTracking()
 {
     SafeRecursiveAction(
         ex =>
     {
         var actionWithTag = new DependencyNode.ActionWithTag(s => ex.IsDirty = true, "");
         ex.Dependency.AddPropertyDependency("*", actionWithTag);
         ex.IsDirtyTrackingStarted = true;
     }
         );
 }