How do I enable (and conversely disable) a button when a textbox has a value, and a combo box has a selected item?
How could I set up the bindings to get the button to disable/enable appropriately?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is not the way you should think. WPF encourages to use MVVM so you should prepare your VM class so that it has the appropriate properties that you should bind to(and probably model class too). Do not put logic/validation logic into your GUI.