microsoft-ui-xaml icon indicating copy to clipboard operation
microsoft-ui-xaml copied to clipboard

Arabic language text becomes invisible in textboxes.

Open Mogikan opened this issue 5 years ago • 6 comments
trafficstars

Describe the bug Invisible text in Textbox Arabic language

Steps to reproduce the bug

Steps to reproduce the behavior:

  1. Open UWP app Language Settings.
  2. Install Arabic (Algerea) and set it as primary UI language.
  3. Go to 'Xaml Controls Gallery App available in windows store'
  4. Open AllControls->Textbox
  5. Switch keyboard layout to English
  6. Click on textbox to acquire focus
  7. Insert 111111. (it's important to follow all the steps before otherwise the issue won't be reproduced)->Text will be left aligned and visible.
  8. Click outside of the control (loose focus)
  9. Change language to Arabic
  10. Click on the textbox with 111111. ->Text will be right aligned and invisible. You can select it and it will be selected but invisible. Expected behavior
  11. Click on the textbox with 111111. ->Text will be right aligned and visible.

Screenshots

Version Info I reproduce this bug even in non WinUI project in simple UWP app. This bug also reproduced in https://github.com/microsoft/Xaml-Controls-Gallery with PackageReference Include="Microsoft.UI.Xaml Version 2.4.0-prerelease.200322001

My OS version which reproduces the problem: version 1909 OS Build 18363.720

Device: Desktop Additional context

Mogikan avatar Mar 30 '20 03:03 Mogikan

Possible cause: We might not get keyboard layout changed events when we don't have focus (note repro requires removing focus in that step). Obviously, we shouldn't draw invisible text :) This would be in the TextBox code, so will require WinUI3, not possible in WinUI2.

chrisglein avatar Apr 03 '20 18:04 chrisglein

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Jul 29 '23 13:07 github-actions[bot]

Nice! Good to know how it works.

Mogikan avatar Aug 06 '23 20:08 Mogikan

Reopening per request in #8727

DmitriyKomin avatar Jan 08 '24 23:01 DmitriyKomin

Hi @Mogikan , we tried this on winui3 and it does not repro. Does this repro for you in WinUI3 ?

ranjeshj avatar Feb 20 '24 23:02 ranjeshj

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.