Skip to content

WatermarkTextBox

Tim Heuer edited this page Oct 25, 2013 · 6 revisions

WatermarkTextBox (Obsolete)

DEPRECATED

This control is deprecated in favor of using the PlaceholderText property on the TextBox controls built in to Windows 8.1. Visit Callisto Migration Tips for specific information.

What it is

WaterMarkTextBox is a derivitave of TextBox that adds only the functionality of providing a default text 'hint' in the text input area if no text exists. This is helpful in providing some tip to your users e.g., "Enter your name here..." which will automatically go away when the user starts typing. The Watermark has no affect on the Text property or other aspects of the TextBox control.

Example Usage

Declarative:

<callisto:WatermarkTextBox Watermark="Enter your name..." />

Code:

WatermarkTextBox wmt = new WaterMarkTextBox();
wmt.Watermark = "Enter your name...";

Example UI

WatermarkTextBox from Callisto

Known Issues

None currently

Notes

This is based on the Silverlight implementation of watermark text box controls.

Clone this wiki locally