I'm new to WPF. I'm developing an application which contains a list view control. I have added 5 columns to it but the problem is these five columns are not stretched in the list view control.
<ListView Grid.Column="2开发者_如何学Go" Name="d" Margin="0,0,0,23" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
<ListView.View>
<GridView>
<GridViewColumn Header="d" Width="100" />
<GridViewColumn Header="d" Width="100"/>
<GridViewColumn Header="d" Width="100" />
<GridViewColumn Header="d" Width="100"/>
<GridViewColumn Header="d" Width="100"/>
<GridViewColumn Header="d" Width="100"/>
</GridView>
</ListView.View>
</ListView>
Here is the code that I used. I tried to put * for as width in columns but it not acceptable. How am I to stretch this columns in list view control?
精彩评论