开发者

Stretching ListView columns

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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜