KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a ToggleButton with its IsChecked property bound to a property using a OneWay binding. <ToggleButton Command="{Binding Path=SomeCommand}" IsChecked="{Binding Path=SomeProperty, Mode=OneWay}" /> The SomeCommand toggles the boolean SomeProperty value, and a PropertyChanged event is raised for SomeProperty . If I change SomeProperty in my viewmodel the ToggleButton depresses correctly. However if I click the ToggleButton the binding seems to get lost and the button no longer gets checked according to the value of SomeProperty . Any ideas on how to fix this problem?
Tags (comma-separated)
Save Edits
Cancel