Hint/Placeholder-Text for regular TextBox

WPF Studio, Themes, and Shared Library for WPF Forum

Posted 1 year 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 1 year 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 (v2018.1 build 0675) was released 11 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.