microsoft / dotnet

This repo is the official home of .NET on GitHub. It's a great starting point to find many .NET OSS projects from Microsoft and the community, including many that are part of the .NET Foundation.
https://devblogs.microsoft.com/dotnet/
MIT License
14.38k stars 2.22k forks source link

WPF Application + Windows 10 Touch Keyboard Flickering Issue #671

Open james1301 opened 6 years ago

james1301 commented 6 years ago

WPF Touch Keyboard Problems.zip

Hi,

I am having an issue in our main WPF Application which has recently been updated to the latest .net 4.7.1. Mainly because we were hoping to take advantage of the native invocation of the Windows 10 Touch Keyboard in .net 4.6.2+.

The Touch Keyboard experience is not great however, with it often flickering on and off and not operating as I would expect. I have attached a video of the problem and the project I was using to duplicate.

The application is a base WPF project with some text boxes and combo's, running on .net 4.7.1. In my video I am using the application natively on a Surface Pro 4, fully up to date. I have tried this also on another touch screen monitor and it appears to do the same thing.

Duplication

  1. Run Application
  2. Click between TextBoxes, without clicking off them
  3. Working fine, stays visible as I click between the boxes, and tab works to tab between fields while keeping the keyboard showing.
  4. Click off in between the TextBoxes, the Touch Keyboard then collapses as expected
  5. Try to re-select a TextBox and you should notice some flickering of the Keyboard, often needing to click on the TextBox twice for it to stay visible. Clicking between TextBoxes now seems to always close the Touch Keyboard. Trying to use Tab on the Touch Keyboard when visible, now closes the Touch Keyboard.

This is seriously hampering our efforts, and not sure what I can do to improve the situation. I hope you can help.

Thanks,

James

gaffealagaffe commented 6 years ago

Hi,

We do have the same problem :

As you, we isolated it in a dummy basic application that has only 2 textboxes and 1 button. The fact of touching the button for stealing the focus from the textboxes makes the keyboard flickering for the next times we are trying to focus back the textboxes by touching them.

We opened issues on the Developper Dommunity as well as on MSDN Forums keeping a title similar as yours: https://developercommunity.visualstudio.com/content/problem/222946/wpf-application-windows-10-touch-keyboard-flickeri.html

https://social.msdn.microsoft.com/Forums/vstudio/en-US/b9efb4eb-e0a9-4bf0-9985-57a673c42f79/wpf-application-windows-10-touch-keyboard-flickering-issue?forum=wpf

Have you come up with a solution on your own?

Thanks

gaffealagaffe commented 6 years ago

Hi,

This is obviously not a solution but we found that restoring the window and maximizing it back (maximizing not mandatory) resets the problem so you are good for another round.

Tnks!

james1301 commented 6 years ago

Still getting this warning with that one:

2018-05-14

sleman commented 6 years ago

Having the same issue. Clicking on a textboxes displays keyboard for a split second then it closes by itself. On .net 4.6.2 Windows 10 1709.

jennyD123 commented 5 years ago

We also have the same issue. I retargeted our application to .NET 4.7.2 and that didn't fix the touch keyboard flickering issue. Has anybody found a solution or workaround to this issue yet?

Thanks.

jennyD123 commented 5 years ago

We also have the same issue. I retargeted our application to .NET 4.7.2 and that didn't fix the touch keyboard flickering issue. Has anybody found a solution or workaround to this issue yet?

Thanks.