Hint/Placeholder-Text for regular TextBox

WPF Studio, Themes, and Shared Library for WPF Forum

Posted 2 years ago by Hagay
Version: 17.2.0664
Avatar

Hi,

Is there a control (other than the AutoCompleteBox) that supports Placeholder-Text this out-of-the-box?

I just have some regular UI that contains few TextBox controls and I want to give the user hints like "Type name" or "Type description" (rather than using external lables).

It is quite an easy task to create a ControlTemplate for TextBox that will support this, but I wonder if there is already one in your library that I can reuse.

Thanks!

Comments (1)

Answer - Posted 2 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

Yes if you are using our built-in native control themes, our TextBox theme supports hint properties.  You can use it like this:

<TextBox shared:HintProperties.Hint="Hint text" />


Actipro Software Support

The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.