Include a Button in a TextBox

前端 未结 3 658
刺人心
刺人心 2021-02-09 19:54

I want to add a little Button, which removes all the text in the TextBox. Is it possible to put this \"Remove\"-Button into the TextBox (like i

3条回答
  •  暖寄归人
    2021-02-09 20:00

    Assuming you don't want text or the cursor to disappear behind the button, the only clean way is to re-template the TextBox. If you're not really fussed about that, then you could just do this:

    
        
        
    
    

提交回复
热议问题