Hint/Placeholder-Text for regular TextBox

WPF Studio, Themes, and Shared Library for WPF Forum

Posted 5 years ago by Hagay
Version: 17.2.0664


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.


Comments (1)

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


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 (v22.1.4) was released 26 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.