Пример #1
0
        private static bool PlaceCaretOnAutoCompleteBox(AutoCompleteBox box, Point position)
        {
            int characterIndexFromPoint = box.GetCharacterIndexFromPoint(position, false);

            if (characterIndexFromPoint >= 0)
            {
                box.Select(characterIndexFromPoint, 0);
                return(true);
            }
            return(false);
        }