Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working on an MVVM arch.
I have a grid and a button in one of it's columns. I need to Enable and Disable this button while editing.
How can I get it's load event after saving my record?
I need to make it 'Enabled' again.
Posted
Updated 25-Jul-11 21:38pm
v2
Comments
LittleYellowBird 26-Jul-11 3:40am    
Hi, messages in capitals look like shouting so I have changed that sentence for you so that it does not annoy people and the title needs to be a brief summary of your question so I have tried to add that for you too. Best of Luck. :) Ali

1 solution

In the xaml, add
XML
<Button IsEnabled="{Binding MyProperty}"/>


Now, implement MyProperty in the view model (using INotifyPropertyChanged).
Changing this will change the enable / disable state of the button.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 26-Jul-11 13:36pm    
Good, my 5.
--SA
Abhinav S 26-Jul-11 13:50pm    
Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900