Exemplo n.º 1
0
        private static bool Contains(IInvalidationManagerClient parent, DisplayListMember child)
        {
            var doc = parent as DisplayObjectContainer;

            if (null != doc)
            {
                // include me in the search!
                return(doc.Contains(child, true)); // BUG BUG - this was a bug - it was parent.Children.Contains(), which doesn't go deep, only the direct children!!!
            }

            return(parent == child);
        }
Exemplo n.º 2
0
        private static bool Contains(IInvalidationManagerClient parent, DisplayListMember child)
        {
            var doc = parent as DisplayObjectContainer;
            if (null != doc)
            {
                // include me in the search!
                return doc.Contains(child, true); // BUG BUG - this was a bug - it was parent.Children.Contains(), which doesn't go deep, only the direct children!!!
            }

            return parent == child;
        }