///
        override protected bool IsOffscreenCore()
        {
            if (!Owner.IsVisible)
            {
                return(true);
            }

            Rect boundingRect = RibbonHelper.CalculateVisibleBoundingRect(Owner);

            return(boundingRect == Rect.Empty || boundingRect.Height == 0 || boundingRect.Width == 0);
        }
예제 #2
0
        protected override bool IsOffscreenCore()
        {
            if (!Owner.IsVisible)
            {
                return(true);
            }

            // Borrowed from fix OffScreen fix in 4.0
            Rect boundingRect = RibbonHelper.CalculateVisibleBoundingRect(Owner);

            return(boundingRect == Rect.Empty || boundingRect.Height == 0 || boundingRect.Width == 0);
        }