Expression > Forums Home > Expression Studio Forums > Expression Blend + SketchFlow > Combine triggers in Sketchflow w/out manipulating XAML?
Ask a questionAsk a question
 

QuestionCombine triggers in Sketchflow w/out manipulating XAML?

  • Monday, November 02, 2009 10:48 PMBMeyer_McK Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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!

All Replies

  • Wednesday, November 04, 2009 5:48 PMScott Banning MSFT Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    This is not something you could do with existing behaviors included with Blend.  We will take your concerns into consideration for future revisions.

    Thanks,
    Scott