microsoft-ui-xaml
microsoft-ui-xaml copied to clipboard
Arabic language text becomes invisible in textboxes.
Describe the bug Invisible text in Textbox Arabic language
Steps to reproduce the bug
Steps to reproduce the behavior:
- Open UWP app Language Settings.
- Install Arabic (Algerea) and set it as primary UI language.
- Go to 'Xaml Controls Gallery App available in windows store'
- Open AllControls->Textbox
- Switch keyboard layout to English
- Click on textbox to acquire focus
- 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.
- Click outside of the control (loose focus)
- Change language to Arabic
- 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
- 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
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.
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.
Nice! Good to know how it works.
Reopening per request in #8727
Hi @Mogikan , we tried this on winui3 and it does not repro. Does this repro for you in WinUI3 ?
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.