title: Why cant I get a Thumb to be larger on a styled scrollbar in WPF
body: <p>I have taken the MSDN templates for styling a scrollbar and have been trying to apply my different styles (Image on each track repeater and separate Image on the thumb) but I am unable to make the thumb change size. </p>
  
  <p>I have tried setting the Width on the Track.Thumb style and also in the ControlTemplate of the Thumb itself.  For some reason the default size is only ever rendered even when the thumb actually occupies much more space.  Does anyone know how to make the thumb render at the size that I want?</p>
  
  <p>The XAML I am using for the styles is here:</p>
  
  <pre><code> &lt;Style x:Key="ScrollBarThumb" TargetType="{x:Type Thumb}"&gt;
          &lt;Setter Property="Background" Value="Red" /&gt;
          &lt;Setter Property="OverridesDefaultStyle" Value="True"/&gt;
          &lt;Setter Property="Template"&gt;
              &lt;Setter.Value&gt;
                  &lt;ControlTemplate TargetType="{x:Type Thumb}"&gt;
                      &lt;Image Source="sampleimg.png"  Stretch="Fill" /&gt;                        
                  &lt;/ControlTemplate&gt;
              &lt;/Setter.Value&gt;
          &lt;/Setter&gt;
      &lt;/Style&gt;
  
      &lt;ControlTemplate x:Key="ArfleHBar" TargetType="{x:Type ScrollBar}"&gt;
          &lt;Grid &gt;
              &lt;Grid.ColumnDefinitions&gt;
                  &lt;ColumnDefinition MaxWidth="18"/&gt;
                  &lt;ColumnDefinition Width="0.00001*"/&gt;
                  &lt;ColumnDefinition MaxWidth="18"/&gt;
              &lt;/Grid.ColumnDefinitions&gt;               
              &lt;RepeatButton Grid.Column="0" Style="{StaticResource ScrollBarLineButton}" Width="18" Command="ScrollBar.LineLeftCommand" Content="M 4 0 L 4 8 L 0 4 Z" /&gt;
              &lt;Track Name="PART_Track" Grid.Column="1" IsDirectionReversed="False" &gt;                    
                  &lt;Track.DecreaseRepeatButton&gt;
                      &lt;RepeatButton  Style="{StaticResource ScrollBarPageButton}" Command="ScrollBar.PageLeftCommand" Width="100"/&gt;
                  &lt;/Track.DecreaseRepeatButton&gt;
                  &lt;Track.Thumb&gt;
                      &lt;Thumb  Style="{StaticResource ScrollBarThumb}" Margin="0,1,0,1" Width="250" Padding="0,0,0,0"&gt;                            
                      &lt;/Thumb&gt;
                  &lt;/Track.Thumb&gt;
                  &lt;Track.IncreaseRepeatButton&gt; 
                      &lt;RepeatButton  Style="{StaticResource ScrollBarPageButton}" Command="ScrollBar.PageRightCommand" Width="100" /&gt;
                  &lt;/Track.IncreaseRepeatButton&gt;                    
              &lt;/Track&gt;
              &lt;RepeatButton Grid.Column="3" Style="{StaticResource ScrollBarLineButton}" Width="18" Command="ScrollBar.LineRightCommand" Content="M 0 0 L 4 4 L 0 8 Z"/&gt;
          &lt;/Grid&gt;
      &lt;/ControlTemplate&gt;
  
      &lt;Style x:Key="ArfleBar" TargetType="{x:Type ScrollBar}"&gt;
          &lt;Setter Property="SnapsToDevicePixels" Value="True"/&gt;
          &lt;Setter Property="OverridesDefaultStyle" Value="true"/&gt;
          &lt;Style.Triggers&gt;
              &lt;Trigger Property="Orientation" Value="Horizontal"&gt;
                  &lt;Setter Property="Width" Value="Auto"/&gt;
                  &lt;Setter Property="Height" Value="18" /&gt;
                  &lt;Setter Property="Template" Value="{StaticResource ArfleHBar}" /&gt;
              &lt;/Trigger&gt;                
          &lt;/Style.Triggers&gt;
      &lt;/Style&gt;
  </code></pre>