title: Unable to set the GroupStyle for a ListBox via Style?
body: <p>I'm trying to create a Style that will set the GroupStyle property for my ListBox controls however I am getting a compile time error:</p>
  
  <pre><code>The Property Setter 'GroupStyle' cannot be set because it does not have an accessible set accessor. 
  </code></pre>
  
  <p>My Style setter looks like this:</p>
  
  <pre><code>        &lt;Setter Property="ListBox.GroupStyle"&gt;
              &lt;Setter.Value&gt;
                  &lt;GroupStyle&gt;
                      &lt;GroupStyle.HeaderTemplate&gt;
                          &lt;DataTemplate&gt;
                              &lt;TextBlock Text="{Binding Path=Name}" /&gt;
                          &lt;/DataTemplate&gt;
                      &lt;/GroupStyle.HeaderTemplate&gt;
                  &lt;/GroupStyle&gt;
              &lt;/Setter.Value&gt;
          &lt;/Setter&gt;
  </code></pre>
  
  <p>Is there a work-around for this, and also, if there is no setter for this property, then how are we able to use property-setter syntax for it in XAML to define it inline, in the first place? (still new to WPF)</p>