I have a checkbox in the GridViewColumn that I use to display / modify the database. The click event for this flag is used to indicate the change in the database. To process the "IsChecked" property state, I use datatrigger and setter, se xaml code below:
<Style TargetType="CheckBox">
<Setter Property="IsEnabled" Value="True" />
<Style.Triggers>
<DataTrigger Binding="{Binding Path=ID, Converter={StaticResource Converter}}" Value="true">
<Setter Property="IsChecked" Value="True"/>
</DataTrigger>
</Style.Triggers>
</Style>
Binding works fine until I check the box. After I first checked the box, the state of the IsChecked property is not updated if I manually change the value in the database that I matched with the IsChecked property. If I match, for example, the same value with the "Content" property of a flag, the trigger works fine even after I clicked on this flag.
Does anyone not know what the problem is?
source
share