You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If AcceptsReturn is set to true in a WPF text box, input exceeding MaxLength will be possible in the following situation.
AcceptsReturn=true
MaxLength=4
1.Enter the following two lines in Text
a
b
With the caret at the beginning of the second line, press SHIFT+LEFT on the keyboard to select only the line break part.
3.Enter "c"
This operation allows input exceeding MaxLength.
Repro
Create a new WPF application.
Add a TextBox control to the main window.
Set the AcceptsReturn property of the TextBox to true.
Set the MaxLength property of the TextBox to a specific value, such as 4.
Run the application.
In the TextBox, enter a multi-line text:
Type "a" on the first line.
Press Enter to move to the second line.
Type "b" on the second line.
Place the cursor at the beginning of the second line (before the "b").
Press SHIFT+LEFT to select the line break.
Enter any character.
At this point, you should observe that the input exceeds the set MaxLength.
Original Comments
Feedback Bot on 4/11/2024, 07:28 AM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
The text was updated successfully, but these errors were encountered:
This issue has been moved from a ticket on Developer Community.
If AcceptsReturn is set to true in a WPF text box, input exceeding MaxLength will be possible in the following situation.
AcceptsReturn=true
MaxLength=4
1.Enter the following two lines in Text
a
b
3.Enter "c"
This operation allows input exceeding MaxLength.
Repro
At this point, you should observe that the input exceeds the set MaxLength.
Original Comments
Feedback Bot on 4/11/2024, 07:28 AM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
The text was updated successfully, but these errors were encountered: