/// <summary> /// Invokes the specified method on all controls in the page control tree. /// </summary> private void InvokePageLifeCycleEventRecursive(DotvvmControl control, Action <DotvvmControl> action) { foreach (var child in control.GetThisAndAllDescendants()) { action(child); } }
/// <summary> /// Invokes the specified method on all controls in the page control tree. /// </summary> private void InvokePageLifeCycleEventRecursive(DotvvmControl control, Action<DotvvmControl> action) { foreach (var child in control.GetThisAndAllDescendants()) { action(child); } }