Answer the question
In order to leave comments, you need to log in
How to bind Style to field value?
There is such a button inside the DataGrid. The IsChecked property, which is equal to the boolean value of the isActive field .
<ToggleButton IsChecked="{Binding Path=isActive, UpdateSourceTrigger=PropertyChanged}" Style="{ StaticResource ToggleButtonIcon}" Name="theCheckbox" Click="theCheckbox_Click" />
Style="{ StaticResource ToggleButtonIcon : isAcive==true, StaticResource ToggleButtonIconSuccess : isAcive==false}"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question