title: GridViewColumn.CellTemplate with TextBox not working with ListView.ItemContainerStyle
body: <p>I have a ListView like this:</p>
  
  <pre><code>      &lt;ListView ItemsSource="{Binding Components}"
                        BorderThickness="0"
                        Margin="0,2,0,0"
                        HorizontalAlignment="Stretch"
                        MinHeight="150"
                        SelectionMode="Single"
                  &lt;ListView.View&gt;
                      &lt;GridView&gt;
                          &lt;GridViewColumn Header="Component Name"&gt;
                              &lt;GridViewColumn.CellTemplate&gt;
  
                                  &lt;DataTemplate DataType="{x:Type viewModels:ComponentViewModel}"&gt;
                                      &lt;TextBox Text="{Binding Name}"
                                               Style="{StaticResource TextBoxInListViewStyle}"&gt;
                                      &lt;/TextBox&gt;
                                  &lt;/DataTemplate&gt;
  
                              &lt;/GridViewColumn.CellTemplate&gt;
                          &lt;/GridViewColumn&gt;
                      &lt;/GridView&gt;
                  &lt;/ListView.View&gt;
              &lt;/ListView&gt;
  </code></pre>
  
  <p>This renders like shown here:</p>
  
  <p><img src="https://i.stack.imgur.com/UQvcw.png" alt="enter image description here"></p>
  
  <p>As you can see, TextBox is used (I can select text), but the ListViewItemContainer gives me the glassy selection look which I don't want.</p>
  
  <p>Then I have defined a ItemContainerStyle (ListViewItemStyle) for my ListView which is used like that (7th row):</p>
  
  <pre><code>      &lt;ListView ItemsSource="{Binding Components}"
                        BorderThickness="0"
                        Margin="0,2,0,0"
                        HorizontalAlignment="Stretch"
                        MinHeight="150"
                        SelectionMode="Single"
                        ItemContainerStyle="{StaticResource ListViewItemStyle}"
                  &lt;ListView.View&gt;
                      &lt;GridView&gt;
                          &lt;GridViewColumn Header="Component Name"&gt;
                              &lt;GridViewColumn.CellTemplate&gt;
  
                                  &lt;DataTemplate DataType="{x:Type viewModels:ComponentViewModel}"&gt;
                                      &lt;TextBox Text="{Binding Name}"
                                               Style="{StaticResource TextBoxInListViewStyle}"&gt;
                                      &lt;/TextBox&gt;
                                  &lt;/DataTemplate&gt;
  
                              &lt;/GridViewColumn.CellTemplate&gt;
                          &lt;/GridViewColumn&gt;
                      &lt;/GridView&gt;
                  &lt;/ListView.View&gt;
              &lt;/ListView&gt;
  </code></pre>
  
  <p>Here is my ListViewItemStyle:</p>
  
  <pre><code>&lt;Style x:Key="ListViewItemStyle"
         TargetType="{x:Type ListViewItem}"&gt;
      &lt;Setter Property="SnapsToDevicePixels"
              Value="True" /&gt;
      &lt;Setter Property="Padding"
              Value="4,1" /&gt;
      &lt;Setter Property="HorizontalContentAlignment"
              Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" /&gt;
      &lt;Setter Property="VerticalContentAlignment"
              Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" /&gt;
      &lt;Setter Property="Background"
              Value="Transparent" /&gt;
      &lt;Setter Property="BorderBrush"
              Value="Transparent" /&gt;
      &lt;Setter Property="BorderThickness"
              Value="1" /&gt;
      &lt;Setter Property="FocusVisualStyle"
              Value="{StaticResource FocusVisual}" /&gt;
      &lt;Setter Property="Template"&gt;
          &lt;Setter.Value&gt;
              &lt;ControlTemplate TargetType="{x:Type ListViewItem}"&gt;
                  &lt;Border x:Name="Bd"
                          BorderBrush="{TemplateBinding BorderBrush}"
                          BorderThickness="{TemplateBinding BorderThickness}"
                          Background="{TemplateBinding Background}"
                          Padding="{TemplateBinding Padding}"
                          SnapsToDevicePixels="true"&gt;
                      &lt;ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                        SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
                                        VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                        ContentTemplate="{TemplateBinding ContentTemplate}" /&gt;
                  &lt;/Border&gt;
                  &lt;ControlTemplate.Triggers&gt;
                      &lt;MultiTrigger&gt;
                          &lt;MultiTrigger.Conditions&gt;
                              &lt;Condition Property="IsMouseOver"
                                         Value="True" /&gt;
                          &lt;/MultiTrigger.Conditions&gt;
                          &lt;Setter Property="Background"
                                  TargetName="Bd"
                                  Value="{StaticResource Item.MouseOver.Background}" /&gt;
                          &lt;Setter Property="BorderBrush"
                                  TargetName="Bd"
                                  Value="{StaticResource Item.MouseOver.Border}" /&gt;
                      &lt;/MultiTrigger&gt;
                      &lt;MultiTrigger&gt;
                          &lt;MultiTrigger.Conditions&gt;
                              &lt;Condition Property="Selector.IsSelectionActive"
                                         Value="False" /&gt;
                              &lt;Condition Property="IsSelected"
                                         Value="True" /&gt;
                          &lt;/MultiTrigger.Conditions&gt;
                          &lt;Setter Property="Background"
                                  TargetName="Bd"
                                  Value="{StaticResource Item.SelectedInactive.Background}" /&gt;
                          &lt;Setter Property="BorderBrush"
                                  TargetName="Bd"
                                  Value="{StaticResource Item.SelectedInactive.Border}" /&gt;
                      &lt;/MultiTrigger&gt;
                      &lt;MultiTrigger&gt;
                          &lt;MultiTrigger.Conditions&gt;
                              &lt;Condition Property="Selector.IsSelectionActive"
                                         Value="True" /&gt;
                              &lt;Condition Property="IsSelected"
                                         Value="True" /&gt;
                          &lt;/MultiTrigger.Conditions&gt;
                          &lt;Setter Property="Background"
                                  TargetName="Bd"
                                  Value="{StaticResource Item.SelectedActive.Background}" /&gt;
                          &lt;Setter Property="BorderBrush"
                                  TargetName="Bd"
                                  Value="{StaticResource Item.SelectedActive.Border}" /&gt;
                      &lt;/MultiTrigger&gt;
                      &lt;Trigger Property="IsEnabled"
                               Value="False"&gt;
                          &lt;Setter Property="TextElement.Foreground"
                                  TargetName="Bd"
                                  Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" /&gt;
                      &lt;/Trigger&gt;
                  &lt;/ControlTemplate.Triggers&gt;
              &lt;/ControlTemplate&gt;
          &lt;/Setter.Value&gt;
      &lt;/Setter&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>This gives me the selection look I want. But unfortunately now my TextBox template from the CellTemplate is not working anymore and the data binding isn't working either:</p>
  
  <p><img src="https://i.stack.imgur.com/BYaWt.png" alt="Good selection but bad template and binding"></p>
  
  <p>Happy new year!</p>