title: How to hide togglebutton in grouping expander wpf
body: <p>I want to hide or remove the togglebutton which appears in my grouping headers without losing functionality (User can press anywhere on the group to expand/close it) but I can't figure out where I can edit it in my current code or how can I do it otherwise to maintain what I have. I posted an image and my group xaml style code below. </p>
  
  <p><a href="https://i.imgur.com/7NjF4AS.png" rel="nofollow noreferrer">https://i.imgur.com/7NjF4AS.png</a></p>
  
  <pre><code>&lt;Style x:Key="GroupHeaderStyle" TargetType="{x:Type GroupItem}"&gt;
  
          &lt;Setter Property="Template"&gt;
  
              &lt;Setter.Value &gt;
                  &lt;ControlTemplate TargetType="{x:Type GroupItem}"&gt;
  
                      &lt;Expander x:Name="exp" Background="Firebrick"&gt;
  
  
                          &lt;Expander.Header&gt;
  
                              &lt;StackPanel Orientation="Horizontal" Height="40" &gt;
                                  &lt;TextBlock Text="{Binding Name}" Margin="0,0,0,0" FontSize="23" VerticalAlignment="Center" Foreground="White" /&gt;
                                  &lt;TextBlock Text="{Binding ItemCount}" FontSize="25" FontWeight="Bold" Margin="10,0,0,0" VerticalAlignment="Center" Foreground="White" /&gt;
                                  &lt;TextBlock Text="item(s)" FontSize="25" Margin="10,0,0,0" Width="1000"  VerticalAlignment="Center" Foreground="White"/&gt;
  
  
                              &lt;/StackPanel&gt;
                          &lt;/Expander.Header&gt;
  
  
                          &lt;ItemsPresenter&gt;
  
  
                          &lt;/ItemsPresenter&gt;
  
                          &lt;Expander.Style&gt;
                              &lt;Style TargetType="Expander"&gt;
  
                                  &lt;Setter Property="IsExpanded" Value="False"&gt;&lt;/Setter&gt;
                                  &lt;Style.Triggers&gt;
  
                                      &lt;DataTrigger Binding="{Binding Name}" Value="Title" &gt;
                                          &lt;Setter Property="IsExpanded" Value="True"&gt;&lt;/Setter&gt;
                                          &lt;Setter Property="IsEnabled" Value="False" /&gt;
  
                                      &lt;/DataTrigger&gt;
  
                                  &lt;/Style.Triggers&gt;
                              &lt;/Style&gt;
                          &lt;/Expander.Style&gt;
                      &lt;/Expander&gt;
                  &lt;/ControlTemplate&gt;
              &lt;/Setter.Value&gt;
          &lt;/Setter&gt;
      &lt;/Style&gt;
  </code></pre>