Ah ~~~ RichTextBox again

Source: Internet
Author: User

Ah ~~~ RichTextBox again

Zhou yinhui

 

Isn't the damn [WPF] RichTextBox used for release without being tested?

We have encountered many holes in RichTextBox before. Today's things are like this:

1. You can download a Microsoft official demo of RichTextBox in msdn to reproduce this problem, or download it here.

2. Run it. First enter something in the English Input Method

 

3. Do not select any text, and click a button on the toolbar that can change the text attributes, such as underline.

4. Enter something.
 

5, middle ~ It seems great. The characters entered later are underlined.

6. disable thisProgram, Run it again, but please use another input method, such as Chinese.

 

7. Repeat Step 3 without selecting any text. Then, click a button on the toolbar that can change the text attributes, such as underline.

8. Then, enter something.

 

9,What about my underline ????

 

I have tried Chinese and Japanese input methods, and there are problems ~~~~~~~~~~~~~~

Heheh, I heard a voice in the distance, "you can choose not to use it, and the framework confiscated your money ..."

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.