123456789101112131415161718192021222324252627282930313233343536 |
- namespace GDNXFD.Alert.Config.Controls
- {
- using GDNXFD.Alert.Config.Helpers;
- using System;
- using System.Threading;
- using System.Threading.Tasks;
- using System.Windows.Controls;
- /// <summary>
- /// Combobox with virtual Keyboard
- /// </summary>.
- public class ComboBoxKeyboard : ComboBox
- {
- private TabtipHelper tabtipHelper = TabtipHelper.Instance;
- /// <summary>
- /// On got focus.
- /// </summary>
- /// <param name="e">Event args</param>
- protected override void OnGotKeyboardFocus(System.Windows.Input.KeyboardFocusChangedEventArgs e)
- {
- tabtipHelper.TryCreateTabtipProcess();
- base.OnGotKeyboardFocus(e);
- }
- /// <summary>
- /// On lost focus.
- /// </summary>
- /// <param name="e">Event args</param>
- protected override void OnLostKeyboardFocus(System.Windows.Input.KeyboardFocusChangedEventArgs e)
- {
- tabtipHelper.TryKillTabtipProcess();
- base.OnLostKeyboardFocus(e);
- }
- }
- }
|