public bool ContainsView(IView view) { if (ReferenceEquals(_viewInfo.View, view)) { return true; } foreach (var child in _children) { if (child.ContainsView(view)) { return true; } } return false; }