title: DataTemplate, LoadContent and DataTriggers not firing
body: <p>I have a custom UserControl which has a DependencyProperty "ItemTemplate" of type "DataTemplate". I create an instance of this ItemTemplate via .LoadContent(), assign the .DataContext and put it an ContentControl. The only drawback I have is that DataTemplate.Triggers are not fired.</p>
  
  <p>Example Xaml Code:</p>
  
  <pre><code>&lt;Window.Resources&gt;
      &lt;DataTemplate x:Key="MyTemplate"&gt;
          &lt;Label Name="MyLabel" Content="Default"/&gt;
          &lt;DataTemplate.Triggers&gt;
              &lt;DataTrigger Binding="{Binding}" Value="1"&gt;
                  &lt;Setter TargetName="MyLabel" Property="Content" Value="True" /&gt;
              &lt;/DataTrigger&gt;
              &lt;DataTrigger Binding="{Binding}" Value="0"&gt;
                  &lt;Setter TargetName="MyLabel" Property="Content" Value="False" /&gt;
              &lt;/DataTrigger&gt;
          &lt;/DataTemplate.Triggers&gt;
      &lt;/DataTemplate&gt;        
  &lt;/Window.Resources&gt;
  
  &lt;ContentControl x:Name="MyContent" /&gt;
  </code></pre>
  
  <p>Example Code Behind:</p>
  
  <pre><code>private void Window_Loaded(object sender, RoutedEventArgs e) {
      var template = FindResource("MyTemplate") as DataTemplate;
  
      var instance = template.LoadContent() as FrameworkElement;
      instance.DataContext = "1";
      MyContent.Content = instance;
  }
  </code></pre>
  
  <p>Output is "Default".</p>
  
  <p>The same DataTemplate used in a ListBox works fine:</p>
  
  <pre><code>&lt;ListBox x:Name="MyListBox" ItemTemplate="{StaticResource MyTemplate}" /&gt;
  </code></pre>
  
  <p>Code Behind:</p>
  
  <pre><code>MyListBox.ItemsSource = new[] { "1", "0" };
  </code></pre>
  
  <p>Output is "True" and "False".</p>
  
  <p>Any ideas how to fire the DataTemplate.Triggers? Do I need to manually cycle over all triggers and execute them? If yes how can I evaluate a trigger?</p>
  
  <p>Thanks in advance,</p>
  
  <p>Christian</p>