Example #1
0
        /// <summary>
        /// IVsWindowFrame instances can nest within each other.  This method will get the top most IVsWindowFrame
        /// in the nesting
        /// </summary>
        public static IVsWindowFrame GetTopMost(this IVsWindowFrame vsWindowFrame)
        {
            IVsWindowFrame parent;

            if (vsWindowFrame.TryGetParent(out parent))
            {
                return(GetTopMost(parent));
            }

            return(vsWindowFrame);
        }