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

How to change Datagrid Header Background using our custom style and based on MetroColumnHeader? #2340

Closed
ashishbhojani opened this issue Feb 6, 2016 · 1 comment
Assignees
Milestone

Comments

@ashishbhojani
Copy link

No description provided.

@punker76 punker76 added this to the 1.3.0 milestone Mar 13, 2016
@punker76 punker76 self-assigned this Mar 13, 2016
punker76 added a commit that referenced this issue Mar 13, 2016
@punker76
Copy link
Member

@ashishbhojani It's now available with the latest pre-release

            <DataGrid.ColumnHeaderStyle>
                <Style BasedOn="{StaticResource MetroDataGridColumnHeader}" TargetType="{x:Type DataGridColumnHeader}">
                    <Setter Property="Background" Value="Red" />
                    <Style.Triggers>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsMouseOver" Value="True" />
                                <Condition Property="SortDirection" Value="{x:Null}" />
                            </MultiTrigger.Conditions>
                            <Setter Property="Background" Value="Yellow" />
                        </MultiTrigger>
                    </Style.Triggers>
                </Style>
            </DataGrid.ColumnHeaderStyle>

punker76 added a commit that referenced this issue Apr 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants