TextBoxKeyboard.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. namespace GDNXFD.Alert.Config.Controls
  2. {
  3. using GDNXFD.Alert.Config.Helpers;
  4. using GDNXFD.Alert.Config.Views;
  5. using System;
  6. using System.Threading;
  7. using System.Threading.Tasks;
  8. using System.Windows.Controls;
  9. using System.Windows.Input;
  10. //using Windows.Devices.Input;
  11. /// <summary>
  12. /// Textbox with virtual Keyboard
  13. /// </summary>.
  14. public partial class TextBoxKeyboard : TextBox
  15. {
  16. private TabtipHelper tabtipHelper = TabtipHelper.Instance;
  17. /// <summary>
  18. /// On got focus.
  19. /// </summary>
  20. /// <param name="e">Event args</param>
  21. protected override void OnGotFocus(System.Windows.RoutedEventArgs e)
  22. {
  23. tabtipHelper.TryCreateTabtipProcess();
  24. base.OnGotFocus(e);
  25. }
  26. /// <summary>
  27. /// On lost focus.
  28. /// </summary>
  29. /// <param name="e">Event args</param>
  30. protected override void OnLostFocus(System.Windows.RoutedEventArgs e)
  31. {
  32. tabtipHelper.TryKillTabtipProcess();
  33. base.OnLostFocus(e);
  34. }
  35. }
  36. }