Exemplo n.º 1
0
        /// <summary>
        /// Move focuced control to next tab index.
        /// </summary>
        /// <remarks>
        /// Set sequential tab index for controls inside a frame to make this method work correctly
        /// </remarks>
        public void NextTab()
        {
            IFocusable fc = null;

            if (_FocusedControl != null)
            {
                fc = Grid.FindControlByMinTabIndexAfter(_FocusedControl.TabIndex);
            }
            if (fc == null)
            {
                fc = Grid.FindControlByMinTabIndex();
            }
            if (fc != null)
            {
                FocusControl(fc);
            }
        }