Remove text after clicking in the textbox

Viewed 68927

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 remove the text automatically in XAML code, how do I do it?

8 Answers

you can use Tap method also , it is also working

private void tb1_Tap(object sender, System.Windows.Input.GestureEventArgs e)
    {
        tb1.Text = "";
    }
Related