Alignment of GridViewColumn Header in ListView


In this post i will show the code for alignment of GridViewColumn header.

<Style x:Key="lvh" TargetType="{x:Type GridViewColumnHeader}">
<Setter Property="HorizontalContentAlignment" Value="Left"></Setter>
</Style>

and use it int the GridView like this

<GridView>
<GridViewColumn HeaderContainerStyle="{StaticResource lvh}" Width="200" HeaderTemplate="{StaticResource dtht}" DisplayMemberBinding="{Binding col1}">
</GridViewColumn>
</GridView>
Advertisements

One Response to “Alignment of GridViewColumn Header in ListView”

  1. build a house Says:

    Can you picture that?


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: