Expression > 論壇首頁 > Expression Blend + SketchFlow > Combine triggers in Sketchflow w/out manipulating XAML?
發問發問
 

問題Combine triggers in Sketchflow w/out manipulating XAML?

  • 2009年11月2日 下午 10:48BMeyer_McK 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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!

所有回覆

  • 2009年11月4日 下午 05:48Scott Banning MSFT 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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