Catel.MVVM.Views.ViewStack.ContainsView C# (CSharp) Method

ContainsView() public method

Determines whether this view stack contains the specified view.
public ContainsView ( IView view ) : bool
view IView The view.
return bool
        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;
        }