Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

[Question] How to create a Style for DataGrid? #3876

@omnilogix

Description

@omnilogix

How do I create a Style resource for a DataGrid?

            <Style TargetType="controls:DataGrid" BasedOn="{StaticResource ?????}">
                <Setter Property="AutoGenerateColumns" Value="False" />
                <Setter Property="GridLinesVisibility" Value="Horizontal" />
                <Setter Property="HeadersVisibility" Value="Column" />
...
            </Style>

I have not found a default style key to use as a basis for a new style

Metadata

Metadata

Assignees

No one assigned

    Labels

    DataGrid 🔠Issues on DataGrid controlquestion ❔Issues or PR require more information

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions