July 2017
Beginner
466 pages
9h 37m
English
This is almost like the property trigger, but here it is used to set an action on multiple property changes and will execute when all the conditions within MulitTrigger.Conditions are satisfied:
<Style TargetType="{x:Type CheckBox}">
<Style.Triggers>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="IsEnabled" Value="True"/>
<Condition Property="IsChecked" Value="False"/>
</MultiTrigger.Conditions>
<MultiTrigger.Setters>
<Setter Property="Background" Value="Red"/>
<Setter Property="Opacity" Value="0.5"/>
</MultiTrigger.Setters>
</MultiTrigger>
</Style.Triggers>
</Style>
Here, in this example, we have a multi trigger associated with the checkbox control's style. When the control is enabled and unchecked, the trigger ...
Read now
Unlock full access