Click here to Skip to main content
15,901,035 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,

I am trying to bind the IsChecked property of RibbonCheckBox. When I check or uncheck from the UI it is property is getting hit.

But when i update property from viewmodel, property is getting updated but UI is not getting refreshed.

SQL
<ribbon:RibbonCheckBox Label="User Check" x:Name="chkUr" IsChecked="{Binding UserChecked,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged,NotifyOnSourceUpdated=True,NotifyOnTargetUpdated=True}" Checked="chkUr_Checked" Unchecked="chkUr_Unchecked">
            </ribbon:RibbonCheckBox>


And in the corresponding viewmodel.

UserChecked= false;

Thanks in advance!

Regards
Govardhan
Posted
Comments
[no name] 3-Jul-12 10:50am    
Did you implement INotifyPropertyChanged in your viewmodel?
govardhan4u 3-Jul-12 11:03am    
Yes i have;

public bool UserChecked
{
get { return userChecked; }
set { if (object.ReferenceEquals(userChecked, value) != true) { userChecked= value; RaisePropertyChanged(() => this.UserChecked); } }
}

1 solution

Solved.

I again subscribed it.

eventAggregator.GetEvent<reseturs>().Subscribe(LoadUr);
 
Share this answer
 
Comments
Mary Elmallakh 4-Aug-14 11:03am    
I have the same problem and I cannot solve it. can anyone help please

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