CodePlexProject Hosting for Open Source Software
I have a button with IsEnabled set to False. The button is disabled at design time but when I run gets enabled.
I thought there may be a convention based wire-up going on. If not any ideas why my button gets enabled?
If I comment out the LoginButton method that is auto-wired to the button click then the button gets disabled properly. Looks like this auto-wiring is also enabling the button. How do I allow the button to be disabled when required?
Add a property called CanLoginButton and make sure that your class implements INotifyPropertyChanged. Use the property to control the enabled/disabled state.
Have a read through of these:
Thanks Rob. Worked great. I had tried binding the IsEnabled property but I guess it was being ignored in favour of the convention based wiring.
Are you sure you want to delete this post? You will not be able to recover it later.
Are you sure you want to delete this thread? You will not be able to recover it later.