When you activate an application, a textbox with text \"hello\" will appear.
My question is:
When you click on the textbox in order to make input data, I want to rem
A XAML implementation that requires no code-behind. This is copied from the template of a custom control I built, and you'd probably want to make this a custom control yourself.
The basic idea is that there are two TextBox
es in a Grid
. The top one is the actual control that the user interacts with, but it's invisible (its 'Opacity' is zero) unless it contains text or has the focus. The bottom one contains the prompt text. It will only be visible when the TextBox
on top of it is not, and it will never get the focus.
You'll probably have to mess around with the binding on the editable TextBox
, but this should get you started.