WPF TreeView数据绑定

         <TreeView Grid.Column="0" Margin="3,3,0,3" Name="GroupList">

            <TreeView.ItemTemplate>

                <HierarchicalDataTemplate ItemsSource="{Binding GList}">

                    <TextBlock Text="{Binding Name}" />

                </HierarchicalDataTemplate>

            </TreeView.ItemTemplate>

        </TreeView>

你可能感兴趣的:(treeview)