How to apply style for WPF DATAGRID Scroll Bars

I have a WPat Datagrid control. I want to apply a style for scrollbars. It would be nice if you could give me an example for this.

Thanx

+3
source share
1 answer

How about this?

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

Source: https://habr.com/ru/post/1750780/


All Articles