title: Style triggers don't inherit?
body: <p>I have a style with the following triggers defined:</p>
  
  <pre><code>&lt;Style TargetType="{x:Type graphicElements:MyTabItem}" x:Key="StMyTabItemBase"&gt;
      &lt;Setter Property="Foreground" Value="Black"/&gt;
      &lt;Setter Property="SelectedColor" Value="{Binding ApplicationColor, RelativeSource={RelativeSource AncestorType=graphicElements:MyTabControl}}" /&gt;
      &lt;Setter Property="Expanded" Value="False" /&gt;
      &lt;Setter Property="BorderBrush" Value="#FFACACAC"/&gt;
      &lt;Setter Property="Margin" Value="0"/&gt;
      &lt;Setter Property="Padding" Value="0"/&gt;
      &lt;Setter Property="HorizontalContentAlignment" Value="Left"/&gt;
      &lt;Setter Property="VerticalContentAlignment" Value="Top"/&gt;
      &lt;Setter Property="SnapsToDevicePixels" Value="False" /&gt;
      &lt;Setter Property="Template" Value="{StaticResource CtTabCollapsed}" /&gt;
      &lt;Style.Triggers&gt;
          &lt;DataTrigger Binding="{Binding IsSideBarExpanded, RelativeSource={RelativeSource AncestorType=graphicElements:MyTabControl}}" Value="True"&gt;
              &lt;DataTrigger.EnterActions&gt;
                  &lt;BeginStoryboard&gt;
                      &lt;Storyboard&gt;
                          &lt;BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="Expanded" BeginTime="0" Duration="0"&gt;
                              &lt;DiscreteBooleanKeyFrame Value="True" /&gt;
                          &lt;/BooleanAnimationUsingKeyFrames&gt;
                      &lt;/Storyboard&gt;
                  &lt;/BeginStoryboard&gt;
              &lt;/DataTrigger.EnterActions&gt;
              &lt;DataTrigger.ExitActions&gt;
                  &lt;BeginStoryboard&gt;
                      &lt;Storyboard&gt;
                          &lt;BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="Expanded" BeginTime="0:0:0.25" Duration="0"&gt;
                              &lt;DiscreteBooleanKeyFrame Value="False" /&gt;
                          &lt;/BooleanAnimationUsingKeyFrames&gt;
                      &lt;/Storyboard&gt;
                  &lt;/BeginStoryboard&gt;
              &lt;/DataTrigger.ExitActions&gt;
          &lt;/DataTrigger&gt;
          &lt;Trigger Property="Expanded" Value="True"&gt;
              &lt;Setter Property="Template" Value="{StaticResource CtTabExpanded}" /&gt;
          &lt;/Trigger&gt;
      &lt;/Style.Triggers&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>This works perfectly when I apply the direct style.  However, I want to be able to create styles based on this style to override specific properties like margins and colors.  I have tried to do so as follows (this creates a default based on this style):</p>
  
  <pre><code>&lt;Style TargetType="{x:Type graphicElements:MyTabItem}" BasedOn="{StaticResource StMyTabItemBase}" /&gt;
  </code></pre>
  
  <p>However, as soon as I do that it no longer triggers or switches the template properly.  If I copy just the triggers into the new style it works again, but I don't want to have to put the triggers into each style individually... Why aren't these inheriting like they are supposed to?  Or do I misunderstand something about BasedOn and Triggers?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Here is the 'BasedOn' style that works:</p>
  
  <pre><code>&lt;Style TargetType="{x:Type graphicElements:AutodeskTabItem}" BasedOn="{StaticResource StAutodeskTabItemBase}"&gt;
      &lt;Style.Triggers&gt;
          &lt;DataTrigger Binding="{Binding IsSideBarExpanded, RelativeSource={RelativeSource AncestorType=graphicElements:AutodeskTabControl}}" Value="True"&gt;
              &lt;DataTrigger.EnterActions&gt;
                  &lt;BeginStoryboard&gt;
                      &lt;Storyboard&gt;
                          &lt;BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="Expanded" BeginTime="0" Duration="0"&gt;
                              &lt;DiscreteBooleanKeyFrame Value="True" /&gt;
                          &lt;/BooleanAnimationUsingKeyFrames&gt;
                      &lt;/Storyboard&gt;
                  &lt;/BeginStoryboard&gt;
              &lt;/DataTrigger.EnterActions&gt;
              &lt;DataTrigger.ExitActions&gt;
                  &lt;BeginStoryboard&gt;
                      &lt;Storyboard&gt;
                          &lt;BooleanAnimationUsingKeyFrames Storyboard.TargetProperty="Expanded" BeginTime="0:0:0.25" Duration="0"&gt;
                              &lt;DiscreteBooleanKeyFrame Value="False" /&gt;
                          &lt;/BooleanAnimationUsingKeyFrames&gt;
                      &lt;/Storyboard&gt;
                  &lt;/BeginStoryboard&gt;
              &lt;/DataTrigger.ExitActions&gt;
          &lt;/DataTrigger&gt;
          &lt;Trigger Property="Expanded" Value="True"&gt;
              &lt;Setter Property="Template" Value="{StaticResource CtTabExpanded}" /&gt;
          &lt;/Trigger&gt;
      &lt;/Style.Triggers&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>Basically I just copied out the triggers portion of the base style.  However I don't understand why I have to do that...</p>