title: Setter in DataTemplate Target parent Element (Influence DataGridRow from CellTemplate)
body: <p>i need to collapse the current DataGridRow based on a cell's DataContext value ,</p>
  
  <pre><code>   &lt;DataGridTemplateColumn&gt;
         &lt;DataGridTemplateColumn.CellTemplate&gt;
                &lt;DataTemplate&gt;
                     &lt;ContentControl Content="{Binding}"/&gt;
  
                      &lt;DataTemplate.Triggers&gt;                            
                           &lt;DataTrigger Binding="{Binding IsParentExpanded}" Value="False"&gt;
                                  &lt;!-- Here i wan't to Collapse the DataGridRow--&gt;
                           &lt;/DataTrigger&gt;                            
                       &lt;/DataTemplate.Triggers&gt;
  
                  &lt;/DataTemplate&gt;                        
            &lt;/DataGridTemplateColumn.CellTemplate&gt;
      &lt;/DataGridTemplateColumn&gt;
  </code></pre>
  
  <p>any ideas how this can be done ?</p>
  
  <p>just to clarify i wan't there to be a Setter where the Target in the RelativeSource of type DataGridRow. </p>
  
  <p>currently i apply this change threw : </p>
  
  <pre><code>   &lt;DataGrid.RowStyle&gt;
          &lt;Style TargetType="{x:Type DataGridRow}"&gt;
               &lt;Style.Triggers&gt;
                   &lt;DataTrigger Binding="{Binding IsParentExpanded}" Value="False"&gt;
                        &lt;Setter Property="Visibility" Value="Collapsed"/&gt;
                    &lt;/DataTrigger&gt;
               &lt;/Style.Triggers&gt;                    
           &lt;/Style&gt;
      &lt;/DataGrid.RowStyle&gt;
  </code></pre>
  
  <p>i was wondering if there's a different way , only using xaml of course , since i can traverse up the visual tree and do that in code. </p>