Unable to Enter Text into TextBox inside ContentDialog in WinUI3 Desktop
See original GitHub issueDescribe the bug
In WinUI3 Desktop, we are unable to type in text into the TextBoxes inside ContentDialogs with some exceptions.
More detailed observations and debugging below in the “Additional Context” section.
Steps to reproduce the bug
- Clone our WinUI3 Problems TextBox repository.
- Go to the TextBoxWinUI folder.
- Open the TextBoxWinUI solution.
- Build and run with Debug x64.
- Once the application is loaded, click the “Click me” button.
- Without clicking or clicking away from or outside of the application window, start typing into the TextBox.
- No characters should appear - unless actions described in the “Additional context” are performed.
Expected behavior
We expect text to appear within the textbox when typing. We expect to see the same behavior we saw in UWP.
Build and run the TextBoxUWP solution inside the TextBoxUWP folder to see expected behavior.
Screenshots
Screenshot#1 - TextBox inside ContentDialog
Version Info
NuGet package version: [Microsoft.VCRTForwarders.140 1.0.6] [Microsoft.WinUI 3.0.0-preview1.200515.3]
Targeting: Target: Universal Windows Target version: Windows 10, version 1809 (10.0; Build 17763) Min version: Windows 10, version 1809 (10.0; Build 17763)
Windows 10 version | Saw the problem? |
---|---|
Insider Build (xxxxx) | |
November 2019 Update (18363) | |
May 2019 Update (18362) | |
October 2018 Update (17763) | Yes |
April 2018 Update (17134) | |
Fall Creators Update (16299) | |
Creators Update (15063) |
Device form factor | Saw the problem? |
---|---|
Desktop | Yes |
Mobile | |
Xbox | |
Surface Hub | |
IoT |
Additional context
-
When trying to type into the TextBox immediately, no characters appear.
-
When trying to type quickly with many characters into the TextBox immediately, the text cursor seems to freeze up and not blink.
-
However, after clicking away from or outside of the application window, we are able to type in a subset of characters into the TextBox. This subset includes:
- These characters which use the same 5 keys with and without the shift key: []{}'"|`~
- Backspace key works.
- Characters created using the Alt key and numeric keypad (e.g. Alt-65 for “A”).
- Characters copied from elsewhere can be pasted into the TextBox.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:8
- Comments:13 (7 by maintainers)
Top GitHub Comments
@smj389, @crramirez It looks like this bug will be fixed in the next release of WinUI 3.
I’m having the same issue, is there no workaround? My app depends on ContentDialogs with text boxes.