Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataGrid Scrollbar column header not stylized #3518

Open
andrewwong0893 opened this issue Apr 7, 2024 · 0 comments
Open

DataGrid Scrollbar column header not stylized #3518

andrewwong0893 opened this issue Apr 7, 2024 · 0 comments
Labels
bug evaluation required Items is pending review or evaluation by the team

Comments

@andrewwong0893
Copy link

Bug explanation

I'm not sure whether this is a bug or not but I have a DataGrid where I have formatted the column headers to a generic style that is consistent:

<Style TargetType="DataGridColumnHeader">
    <Setter Property="Background" Value="{StaticResource PrimaryColor}" />
    <Setter Property="Foreground" Value="White" />
    <Setter Property="Padding" Value="12,15" />
</Style>

When I load a bunch of data to my grid, a ScrollViewer will automatically appear. However, the column where the scrollbar is placed is not stylized.

image

<DataGrid
    x:Name="_ComponentGrid"
    Grid.Row="2"
    ItemsSource="{Binding ComponentTableModels}"
    ScrollViewer.CanContentScroll="True"
    SelectionMode="Extended"
    SelectionUnit="FullRow"
    VerticalScrollBarVisibility="Auto">
    <DataGrid.Columns>
      ...
   </DataGrid.Columns>
</DataGrid>

Is there a way for me to bring the style over to the scroll bar column?

Version

5.0.0

@andrewwong0893 andrewwong0893 added bug evaluation required Items is pending review or evaluation by the team labels Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug evaluation required Items is pending review or evaluation by the team
Projects
None yet
Development

No branches or pull requests

1 participant