How to evenly space out GridViewColumns in GridView?
Posted
by
Kugel
on Stack Overflow
See other posts from Stack Overflow
or by Kugel
Published on 2011-02-08T15:22:52Z
Indexed on
2011/02/08
15:25 UTC
Read the original article
Hit count: 265
Hello,
This is my XAML:
<ListView ItemsSource="{Binding Items}">
<ListView.View>
<GridView>
<GridViewColumn Header="Property1" DisplayMemberBinding="{Binding Property1}" />
<GridViewColumn Header="Property2" DisplayMemberBinding="{Binding Property2}" />
</GridView>
</ListView.View>
</ListView>
I want these 2 columns to take up the width of ListView in 1:1 ratio.
How can I achieve this?
© Stack Overflow or respective owner