microsoft / microsoft-ui-xaml

Windows UI Library: the latest Windows 10 native controls and Fluent styles for your applications
MIT License
6.27k stars 674 forks source link

Textbox cursor focus is not happening sporadically in UWP application #6884

Closed Pariventhan2015 closed 2 years ago

Pariventhan2015 commented 2 years ago

We have UWP application and Have Templated Control for TextBox which is extended the TextBox control. We are getting an issue sometimes. The cursor is not visible, but able to type, also not able to capture the Control GotFocus event as well.

The UWP application is running in KIOSK mode (using shell Launcher V2).

When we got know this issue and trying to remote the system and verifying it, the cursor focus is working good.

Any suggestion?

ojhad commented 2 years ago

@Pariventhan2015 would you be able to provide a minimal repro/steps for this issue?

Pariventhan2015 commented 2 years ago

@Pariventhan2015 would you be able to provide a minimal repro/steps for this issue?

  1. We have an UWP application, which has more than 200 pages
  2. We have customized most of the controls, Textbox, ComboBox, RadioButton, etc..
  3. The application has lock concept, when the system is idle for an hour, the software (UI UWP application) got locked automatically.
  4. The Lock window is a dialog.
  5. So far it was occurred 5 to 6 times, most of the time issue happened after we unlock the application.
  6. We have created custom dialog control (container) which is as part shell page elements and display the pages as dialog, here we were facing one issue, the tab focus is going background when the dialogs are open, since the parent element is in the shell level, so that we are disabling the background controls when any dialog opens and enabling the background controls when the dialogs are closed. We have more suspicious in this area.
  7. But sometime it happen when navigate one page another page as well.
  8. Also we have Global event to launch the keyboard whenever the TextBox control focused, FocusManager.GotFocus+=.. (but we didn't see any exception in this event method)
ojhad commented 2 years ago

Without the ability for us to reproduce this issue, there is not much we can do. Are you able to put together a minimal repro which we can look at?

ghost commented 2 years ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment.