lepoco / wpfui

WPF UI provides the Fluent experience in your known and loved WPF framework. Intuitive design, themes, navigation and new immersive controls. All natively and effortlessly.
https://wpfui.lepo.co
MIT License
7.72k stars 756 forks source link

Paste issue with PasswordBox and asterisk * #1250

Open timokoessler opened 1 month ago

timokoessler commented 1 month ago

Describe the bug

If you paste text containing the asterisk (*) character inside a PasswordBox and click on the eye icon to view the text, the asterisk is removed. This only seems to happen when the password is pasted.

To Reproduce

Paste test* to a PasswordBox with hidden input. Click on the eye icon to show the input. The asterisk is removed from the element.

Expected behavior

The input should not be modified.

Screenshots

No response

OS version

Windows 11 23H2 22631.4169

.NET version

8.0

WPF-UI NuGet version

3.0.5

Additional context

https://github.com/timokoessler/2FAGuard/issues/43