title: How to Style AvalonEdit ScrollBars
body: <p>I'm trying to change the thumb color of the scrollbars in AvalonEdit. I've tried a number of approaches:</p>
  
  <p>Style the ScrollViewer - lots of examples but I can't get most of them to compile and when I do they don't work.</p>
  
  <p>Use FindTemplate and change thumb colors at runtime. Works in many but not all cases.</p>
  
  <p>All I want is to change the thumb color. Come'on WPF, throw me a bone.</p>
  
  <p>Please someone put me out of my misery and show me how.</p>
  
  <hr>
  
  <p>Follow up:</p>
  
  <p>I was able to get most of what I wanted by changing the default thumb style:</p>
  
  <pre><code>&lt;UserControl.Resources&gt;
      &lt;Style x:Key="{x:Type Thumb}"
             TargetType="{x:Type Thumb}"&gt;
      &lt;Setter Property="Opacity" Value="0.1" /&gt;
      &lt;/Style&gt;
  &lt;/UserControl.Resources&gt;
  </code></pre>
  
  <p>However, if I try to add a control template to this style, it has no effect. Every time I think I understand WPF styling, something happens to convince me I know nothing. </p>