Xamarin/Android includes a very interesting feature on the EditText control. EditText is the equivalent of TextBox and the small but interesting feature is a Hint property that only shows up when the Text property is empty. So before the user types something or after the user clears the text box. You can also specify the HintColor, but alas you can’t specify the HintTypeFace (you muts control it using an event).
Why is this so interesting? Because space is rare luxury on a mobile phone and with hints. most of the times you don’t need a label. Note this feature wasn’t invented by mobile phones – it’s used on login and password text boxes, and also on search text boxes. As far as I know, Wisej doesn’t have something like this.
could Wisej include the three properties
with the described functionality?
Yes, there is already the “text-placeholder” named color under “colors”. If you change it using the theme builder, you may have to hit the refresh button above the preview. The placeholder style is one of those tricky css styles not supported equally by all browsers.
Wisej uses the “text-placeholder” color to generate the appropriate CSS for all browsers.
The font is inherited from the widget itself. Placeholder (in Wisej is the Watermark) is available for the TextBox (multiline too), DateTimePicker and ComboBox. Basically any widget using an editable field.
thanks for bringing up that idea. In fact it´s already included in Wisej.
The property is called Watermark and is available for text boxes and combo boxes.
It´s color can be change through CSS, for example by adding a css file to the project and including it in default.html.
See here: https://css-tricks.com/snippets/css/style-placeholder-text/
Is it possible to include the Watermark color and font in the themes?