Skip to content

Line break is moved from the end of the line to start with Paragraph line count check in custom control passwordbox. - #1931

Merged
Marcel W. (marcelwgn) merged 1 commit into
mainfrom
user/sabareesanms/Unwanted_Newline_Removal_In_Custom_PasswordBox
Jul 24, 2025
Merged

Marcel W. (marcelwgn) merged 1 commit into
mainfrom
user/sabareesanms/Unwanted_Newline_Removal_In_Custom_PasswordBox

Conversation

@sabareesanms

Copy link
Copy Markdown
Contributor

PR Review follow-up: #1930

File Changes:
WinUIGallery/Samples/ControlPages/Fundamentals/Controls/ValidatedPasswordBox.cs

Code changes:
Line break is removed at the end of the function and added at the start with line count check.

 if(paragraph.Inlines.Any())
 {
     paragraph.Inlines.Add(new LineBreak());
 }

Screenshots:
Before:
image

After:
image

@sabareesanms

Copy link
Copy Markdown
Contributor Author

/azp run

@marcelwgn
Marcel W. (marcelwgn) merged commit 9f364c4 into main Jul 24, 2025
@marcelwgn
Marcel W. (marcelwgn) deleted the user/sabareesanms/Unwanted_Newline_Removal_In_Custom_PasswordBox branch July 24, 2025 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants