Search code examples
wpfdatagrid

How to apply style for WPF DATAGRID Scrollbars


I have a WPF Datagrid control. I want to apply style for scrollbars. It would be nice if u can give me an example for it.

Thanx


Solution

  • How about something this?

    <DataGrid>
        <DataGrid.Resources>
            <Style TargetType="ScrollBar">
                <Setter Property="Background" Value="Red" />
            </Style>                                        
        </DataGrid.Resources>
    </DataGrid>