Пример #1
0
        /// <summary>
        /// Requests that the focus be put on the passed in component
        /// </summary>
        /// <param name="component">the component that focus is being requested for</param>
        /// <returns>true if the focus was successfully transferred to the passed in PageComponent</returns>
        public bool RequestFocusForComponent(PageComponent component)
        {
            if (CUIUtility.IsNullOrUndefined(component))
                return false;

            if (_activeComponents.Contains(component))
                return true;

            _activeComponents.Add(component);
            HandleQuickLookup();
            component.ReceiveFocus();
            return true;
        }
Пример #2
0
        /// <summary>
        /// Requests that the focus be put on the passed in component
        /// </summary>
        /// <param name="component">the component that focus is being requested for</param>
        /// <returns>true if the focus was successfully transferred to the passed in PageComponent</returns>
        public bool RequestFocusForComponent(PageComponent component)
        {
            if (CUIUtility.IsNullOrUndefined(component))
            {
                return(false);
            }

            if (_activeComponents.Contains(component))
            {
                return(true);
            }

            _activeComponents.Add(component);
            HandleQuickLookup();
            component.ReceiveFocus();
            return(true);
        }