Share via

TextBox has the wrong rendering behavior when I set the TextWarpping to 'Wrap'

Xie Steven 831 Reputation points
2020-08-06T02:42:45.253+00:00

Hello MS-Guys,

Please see the following code sample:

<StackPanel>  
        <TextBox MinHeight="50" Text="その他その他その他その他1234567890123456789012" Width="500" TextWrapping="Wrap"/>  
  
        <TextBox MinHeight="50" Text="その他その他その他その他12345678901234567890123" Width="500" TextWrapping="Wrap"></TextBox>  
  
        <TextBox MinHeight="50" Text="Otherotherother12345678901234567890123456789012345678901234567890123456789012345678901234567890" Width="500" TextWrapping="Wrap"></TextBox>  
    </StackPanel>  

15889-2020-08-06-103151.png

When the text of TextBox is Japanese, the 'Wrap' doesn't seem to render it correctly. You could see the second TextBox, it did not take up the whole line and the wrap it up. But the third TextBox with the english words, it rendered correctly.

I wanted to konw if it's a bug or a known issue. My project target version is 16299 . I also have tested this issue with the target version 18362.

Best Reagrds,
Xavier

Developer technologies | Universal Windows Platform (UWP)
0 comments No comments

Answer accepted by question author

Richard Zhang-MSFT 6,936 Reputation points Microsoft Employee Moderator
2020-08-06T07:13:17.487+00:00

Hello,

Welcome to Microsoft Q&A.

The text wrap of TextBox will be based on the current input language. This is the design of the control and cannot be interfered currently.

Thanks.

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.