I am not really a programmer, but a designer evaluating the usefulness of Sketchflow WPF to communicate design to the team (as opposed to static mockups). I would like a text alert to go from 0% to 100% opacity whenever both of two checkboxes are checked. However, by dragging and dropping behaviors, it seems the best I can do is a kludgy simulation whereby the alert appears whenever the second checkbox is checked, regardless of whether the first is checked. How can a create a single trigger that evaluates both controls?
Here is the XAML for that approximate solution:
<CheckBox x:Name="Box_1" Content="Content_1">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Unchecked">
<ic:ChangePropertyAction x:Name="Hide_alert1" TargetName="Alert_text" PropertyName="Opacity"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</CheckBox>
<CheckBox x:Name="Box_2" Content="Content_2">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Checked">
<ic:ChangePropertyAction x:Name="Show_alert" TargetName="Alert_text" PropertyName="Opacity" Value="1"/>
</i:EventTrigger>
<i:EventTrigger EventName="Unchecked">
<ic:ChangePropertyAction x:Name="Hide_alert" TargetName="Alert_text" PropertyName="Opacity"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</CheckBox>
Thanks!