Пример #1
0
        /// <summary>
        /// Asettaa focuksen kontrollille jolla on pienin focusindex.
        /// </summary>
        public void FocusFirst()
        {
            List <Control> allControls = controlManager.AllControls()
                                         .ToList();

            focusManager.ChangeFocus(allControls.First(p => p.FocusIndex.X == allControls.Min(c => c.FocusIndex.X) &&
                                                       p.FocusIndex.Y == allControls.Min(c => c.FocusIndex.Y)));
        }