WPF does not ship with a textbox control which has support for a watermark aka placeholder aka hint.
This is my custom control. By no means is this the most efficient or tiniest solution. There are probably better. This is intended for learners because it does not require XAML(XML) Triggers or styles. Just plain old C# with a dependency property and event handling.
This is my custom control. By no means is this the most efficient or tiniest solution. There are probably better. This is intended for learners because it does not require XAML(XML) Triggers or styles. Just plain old C# with a dependency property and event handling.
No comments:
Post a Comment