Scrollbar Styles
-------------------------------------------------------------------------------------
Shows how you can customize the appearance of the scrollbars within a C1FlexGrid.

The C1FlexGrid uses standard scrollbar controls in its layout, and relies on the
styling mechanism provided by Silverlight and WPF. This ensures that the grid 
scrollbars have an appearance that is consistent with the rest of your application.

For example, if you apply a theme to a page in your application, the scrollbars
in the C1FlexGrid will automatically honor the theme, and their appearance will
be consistent with the rest of the app.

If you want to apply a custom style to the scrollbars in a C1FlexGrid, you have
to create the Style and add it to the grid's resources. For example:

<code>
    <!-- C1FlexGrid with custom scrollbars -->
    <c1:C1FlexGrid Name="_flex1" Background="Black" Foreground="White" >
        <c1:C1FlexGrid.Resources>

            <!-- generic style to customize all scrollbars in this scope -->
            <Style TargetType="ScrollBar">
                <Setter Property="MinWidth" Value="17"/>
                <Setter Property="MinHeight" Value="17"/>
                <Setter Property="IsTabStop" Value="False"/>
                <Setter Property="Template" Value="{StaticResource simpleScrollbarTemplate}" />
            </Style>
        </c1:C1FlexGrid.Resources>
    </c1:C1FlexGrid>
</code>

Notice how the style specifies a TargetType, but does not specify a Key. This causes Silverlight
to apply the style to all controls of the specified type within the current scope. In this case,
the scope is a C1FlexGrid control, but usually the scope would be a whole page or application.

Also notice that the style defines the Template property using a reference to a resource located
in the App.xaml file. This allows you to re-use the template in other styles.

The ScrollBar Style used in this sample was created based on the standard one, and gradually
simplifying it. You can find the original Style here:

http://msdn.microsoft.com/en-us/library/cc278076(v=vs.95).aspx

The standard ScrollBar Style is fairly complex; so complex in fact that the Microsoft 
designers made a small mistake that causes an inconsistency. Horizontal scrollbars 
honor the value of the Background property, while vertical scrollbars do not. 
