public void CollectConditionTargets(IStyledObject node, IWatchRuleFactory watchRuleFactory, ICollection <IWatchRule> affectedNodes) { // node types and composition are not changing. If the composition changed, we rebuild the // whole monitoring from scratch. if (Selector.Matches(node)) { Condition.CollectConditionTargets(node, watchRuleFactory, affectedNodes); } }
public void CollectConditionTargets(IStyledObject node, IWatchRuleFactory watchRuleFactory, ICollection <IWatchRule> affectedNodes) { Selector.CollectConditionTargets(node, watchRuleFactory, affectedNodes); var parent = node.GetStyleParent(); while (parent != null) { AnchestorSelector.CollectConditionTargets(parent, watchRuleFactory, affectedNodes); if (DirectChild) { break; } parent = parent.GetStyleParent(); } }
public void CollectConditionTargets(IStyledObject node, IWatchRuleFactory watchRuleFactory, ICollection <IWatchRule> affectedNodes) { First.CollectConditionTargets(node, watchRuleFactory, affectedNodes); Second.CollectConditionTargets(node, watchRuleFactory, affectedNodes); }
public void CollectConditionTargets(IStyledObject node, IWatchRuleFactory watchRuleFactory, ICollection <IWatchRule> affectedNodes) { affectedNodes.Add(watchRuleFactory.CreateStyleClassWatcher(node, Value)); }
public void CollectConditionTargets(IStyledObject node, IWatchRuleFactory watchRuleFactory, ICollection <IWatchRule> affectedNodes) { // does nothing: Node types do not change at runtime. }
public void CollectConditionTargets(IStyledObject node, IWatchRuleFactory watchRuleFactory, ICollection <IWatchRule> affectedNodes) { affectedNodes.Add(watchRuleFactory.CreatePropertyWatcher(node, nameof(IStyledObject.StyleId), Value)); }