Пример #1
0
        private void this_GotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
        {
            AyComboBox _d1 = sender as AyComboBox;
            var        _d  = _d1.editBox;

            BeginTextBoxValidate(_d);
            e.Handled = true;
        }
Пример #2
0
        private void this_LostKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
        {
            AyComboBox _d1 = sender as AyComboBox;
            var        _d  = _d1.editBox;

            if (_d != null)
            {
                if (!_d.IsKeyboardFocused)
                {
                    _d.IsError            = false;
                    apErrorToolTip.IsOpen = false;


                    e.Handled = true;
                }
            }
        }
Пример #3
0
        private void AyComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            AyComboBox cb = sender as AyComboBox;

            if (cb != null && cb.IsEditable == true && cb.IsDropDownOpen)
            {
                //cb.IsEditable = false;
                //cb.IsEditable = true;
                if (editBox != null)
                {
                    if (editBox.IsFocused)
                    {
                        cb.IsEditable = false;
                        cb.IsEditable = true;
                        cb.Focus();
                    }
                }
            }
        }