I have a problem with binding CheckBox to multiple conditions for data trigger. I'm trying to change the background of DataGridRow with two conditions.
First - CheckBox IsChecked.
Second - DataGridCell value is 1.
Here is my code
<CheckBox x:Name="chkTehnickaPodrska" Content="Oboj tikete kojima je istekla teh. podrška" Margin="5" IsChecked="True"/>
<Style.Triggers>
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<Condition Binding="{Binding IsChecked, ElementName=chkTehnickaPodrska}" Value="True"/>
<Condition Binding="{Binding [Istekla tehnička podrška]}" Value="1"/>
</MultiDataTrigger.Conditions>
<Setter Property="Background" Value="Red"/>
</MultiDataTrigger>
</Style.Triggers>
Aucun commentaire:
Enregistrer un commentaire