WPF ListView的使用

<Window x:Class="XamlTest.Window14"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Window14" Height="300" Width="300">
    <Grid>
        <ListView Name="lstView">
            <ListView.View>
                <GridView>
                    <GridViewColumn Header="Id" DisplayMemberBinding="{Binding Id}"></GridViewColumn>

                    <GridViewColumn Header="Name" DisplayMemberBinding="{Binding Name}"></GridViewColumn>
                   
                </GridView>
            </ListView.View>
        </ListView>
    </Grid>
</Window>
posted @ 2018-07-06 08:37  dxm809  阅读(407)  评论(0编辑  收藏  举报