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

Customize header #181

Open
nk-alex opened this issue May 23, 2024 · 2 comments
Open

Customize header #181

nk-alex opened this issue May 23, 2024 · 2 comments

Comments

@nk-alex
Copy link

nk-alex commented May 23, 2024

How could the header be customized? I have seen the property HeaderLabelStyle but I'm not able to figure out how to use it. Also, is it possible to customize the full appearance not just the label style? Something like DataGridColumn.HeaderTemplate

@xky0007
Copy link

xky0007 commented Jun 11, 2024

I found this from the read.me. But I'm also curious how to use HeaderLabelStyle.

<dg:DataGridColumn  PropertyName="Name">
    <dg:DataGridColumn.FormattedTitle>
         <FormattedString>
              <Span Text="Name" TextColor="White" FontSize="13" FontAttributes="Bold" />                           
         </FormattedString>
    </dg:DataGridColumn.FormattedTitle>
</dg:DataGridColumn>

@xky0007
Copy link

xky0007 commented Jun 11, 2024

    <ContentPage.Resources>

        <Style x:Key="header" TargetType="Label">
            <Setter Property="TextColor" Value="White" />
        </Style>
    </ContentPage.Resources>

Then use with HeaderLabelStyle="{StaticResource Key=header}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants