Remove text after clicking in the textbox

后端 未结 8 974
孤独总比滥情好
孤独总比滥情好 2021-02-02 18:03

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

8条回答
  •  孤街浪徒
    2021-02-02 18:24

    you can use Tap method also , it is also working

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

提交回复
热议问题