Ejemplo n.º 1
0
        private bool CanAutoHideView(ExecutedRoutedEventArgs args)
        {
            ViewElement element = args.Parameter as ViewElement;

            if (element == null)
            {
                return(false);
            }
            if (!(element.Parent is AutoHideGroup))
            {
                return(DockOperations.CanAutoHide(element));
            }
            return(true);
        }
Ejemplo n.º 2
0
        private bool IsDocked(WindowFrame frame)
        {
            if (!(frame.FrameView is ViewElement viewElement))
            {
                return(false);
            }

            //verifying whether there is viewElement's ancestor type of DockRoot
            if (!DockOperations.CanAutoHide(viewElement))
            {
                return(false);
            }

            if (OrientationOfDocked(viewElement) == _dockDirection)
            {
                return(true);
            }

            return(false);
        }