zoukankan      html  css  js  c++  java
  • wpf TreeView

    <Window x:Class="Mysql.DepartmentParson"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:s="clr-namespace:System.Collections.Generic;assembly=mscorlib"
            xmlns:local="clr-namespace:Mysql.ServiceReference1"
            Title="DepartmentParson" Height="300" Width="300">
        <Grid>
            <TreeView Name="Tree" HorizontalAlignment="Left"  Height="269"  Width="292" >
                <TreeView.ItemTemplate>
                    <HierarchicalDataTemplate ItemsSource="{Binding Value}">
                        <StackPanel>
                            <TextBlock  Text="{Binding Key.DepartmentName}" Background="Red" />
                        </StackPanel>
                        <HierarchicalDataTemplate.ItemTemplate>
                            <HierarchicalDataTemplate>
                                <TextBlock Text="{Binding Path=ParsonName}"/>
                            </HierarchicalDataTemplate>
                        </HierarchicalDataTemplate.ItemTemplate>
                    </HierarchicalDataTemplate>
                </TreeView.ItemTemplate>
            </TreeView>
        </Grid>
    </Window>
  • 相关阅读:
    452.用最少数量的箭引爆气球
    134.加油站
    Javascript
    spring-JDBC模板
    AOP注解方式ApsectJ开发
    AOP通知类型
    AOP的使用
    AOP相关术语
    AOP
    IOC注解详解
  • 原文地址:https://www.cnblogs.com/zhubaobao/p/3892590.html
Copyright © 2011-2022 走看看