Remove text after clicking in the textbox

后端 未结 8 897
孤独总比滥情好
孤独总比滥情好 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:25

    I just did this:

    XAML:

    
    

    Code behind:

     private void Filename_GotFocus(object sender, RoutedEventArgs e)
            {
                Filename.Text = "";            
            }
    

提交回复
热议问题