ComponentFactory.Krypton.Ribbon.ViewDrawRibbonGroupGallery.GetFirstFocusItem C# (CSharp) Method

GetFirstFocusItem() public method

Gets the first focus item from the container.
public GetFirstFocusItem ( ) : ViewBase
return ViewBase
        public ViewBase GetFirstFocusItem()
        {
            if (_viewLarge.Visible)
            {
                if (_ribbonGallery.Visible && _ribbonGallery.Enabled)
                    return _viewLarge;
            }
            else
            {
                if ((_ribbonGallery.Visible) &&
                    (_ribbonGallery.LastGallery != null) &&
                    (_ribbonGallery.LastGallery.CanSelect))
                    return this;
            }

            return null;
        }