title: Equivalent to WPF ControlTemplate.Triggers in silverlight
body: <p>The below is my WPF ControlTemplate.Triggers and i have changed the code in silverlight with the Interactivity.Interaction.Triggers and it is not working .
  can anyone pls help me.</p>
  
  <p>WPF Code:</p>
  
  <pre><code>&lt;ControlTemplate.Triggers&gt;
                      &lt;Trigger Property="HasItems" Value="false"&gt;
                          &lt;Setter TargetName="DropDownBorder" Property="MinHeight" Value="95"/&gt;
                      &lt;/Trigger&gt;
                      &lt;Trigger Property="IsEnabled" Value="false"&gt;
                          &lt;Setter Property="Foreground" Value="{StaticResource DisabledForegroundBrush}"/&gt;
                      &lt;/Trigger&gt;
                      &lt;Trigger Property="IsGrouping" Value="true"&gt;
                          &lt;Setter Property="ScrollViewer.CanContentScroll" Value="false"/&gt;
                      &lt;/Trigger&gt;
                      &lt;Trigger SourceName="Popup" Property="Popup.AllowsTransparency" Value="true"&gt;
                          &lt;Setter TargetName="DropDownBorder" Property="CornerRadius" Value="4"/&gt;
                          &lt;Setter TargetName="DropDownBorder" Property="Margin" Value="0,2,0,0"/&gt;
                      &lt;/Trigger&gt;
                      &lt;Trigger Property="IsEditable"
                     Value="true"&gt;
                          &lt;Setter Property="IsTabStop" Value="false"/&gt;
                          &lt;Setter TargetName="EditableTextBox" Property="Visibility"    Value="Visible"/&gt;
                          &lt;Setter TargetName="Presenter" Property="Visibility" Value="Hidden"/&gt;
                      &lt;/Trigger&gt;
                  &lt;/ControlTemplate.Triggers&gt;
  </code></pre>
  
  <p>My Silverligh code:</p>
  
  <pre><code>   &lt;i:Interaction.Triggers&gt;                   
                      &lt;i:EventTrigger EventName="HasItems" &gt;
                          &lt;ic:ChangePropertyAction TargetName="DropDownBorder" PropertyName="MinHeight" Value="95" /&gt;
                      &lt;/i:EventTrigger&gt;
  
                      &lt;i:EventTrigger SourceName="Popup" &gt;
                          &lt;ic:ChangePropertyAction TargetName="DropDownBorder" PropertyName="CornerRadius" Value="4" /&gt;
                          &lt;ic:ChangePropertyAction TargetName="DropDownBorder" PropertyName="Margin" Value="0,2,0,0"/&gt;
                      &lt;/i:EventTrigger&gt;
  
                      &lt;i:EventTrigger EventName="Popup.AllowsTransparency"&gt;
                          &lt;ic:ChangePropertyAction TargetName="Border" PropertyName="Background" Value="{StaticResource DisabledBackgroundBrush}" /&gt;
                          &lt;ic:ChangePropertyAction TargetName="Border" PropertyName="BorderBrush" Value="{StaticResource DisabledBackgroundBrush}" /&gt;
                          &lt;ic:ChangePropertyAction TargetName="Border" PropertyName="Foreground" Value="{StaticResource DisabledForegroundBrush}"/&gt;
                      &lt;/i:EventTrigger&gt;
                  &lt;/i:Interaction.Triggers&gt;
  </code></pre>
  
  <p>Thanks in advance!!!</p>