Disable button in WPF?

后端 未结 5 586
一整个雨季
一整个雨季 2020-12-05 16:46

I have a Button and a TextBox in my WPF app. How can I make the Button not enabled until the user enters some text in the TextBox?

5条回答
  •  误落风尘
    2020-12-05 17:50

    This should do it:

    
        
        
    
    

提交回复
热议问题