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.04k stars 667 forks source link

PasswordBox Placeholder Not Working Properly #1043

Open Taiizor opened 3 months ago

Taiizor commented 3 months ago

Describe the bug

PasswordBox Placeholder not working properly.

To Reproduce

<ui:PasswordBox Password="Sucrose Wallpaper Engine" PlaceholderEnabled="True" PlaceholderText="Enter a password" />

Expected behavior

When PlaceholderEnabled is true, Placeholder should not appear if there is data in the Password.

Screenshots

image

OS version

Windows 11 24H2

.NET version

.NET 9

WPF-UI NuGet version

3.0.3

Additional context

No response

textGamex commented 1 month ago

You can set PlaceholderEnabled to false or remove PlaceholderEnabled="True" to avoid this bug; this will not affect the normal display of PlaceholderText. I am looking for a solution to fix it.

Taiizor commented 1 month ago

You can set PlaceholderEnabled to false or remove PlaceholderEnabled="True" to avoid this bug; this will not affect the normal display of PlaceholderText. I am looking for a solution to fix it.

I'm already using this solution temporarily, but a permanent solution would be better (: