<Page x:Class="CollaborativePlatformMain.Form.MessageSubPage.FullProfessionPage"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:CollaborativePlatformMain.Form.MessageSubPage"
        mc:Ignorable="d"
        Title="FullProfessionPage">

    <Grid Name="gridName">

        <Grid.RowDefinitions>
            <RowDefinition Height="1*"/>
            <RowDefinition Height="9*"/>
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition  Width="3*"/>
            <ColumnDefinition  Width="1*"/>
            <ColumnDefinition  Width="1*"/>
            <ColumnDefinition  Width="1*"/>
            <ColumnDefinition  Width="1*"/>
        </Grid.ColumnDefinitions>


        <TextBlock Name="tb_arch" Text="建筑" Grid.Column="0" Grid.Row="0" FontSize="20" HorizontalAlignment="Center" 
                   PreviewMouseLeftButtonDown="tb_arch_PreviewMouseLeftButtonDown"/>
        <TreeView x:Name="tr_threemodel" Grid.Column="0" Grid.Row="1"  ItemsSource="{Binding UpdateSourceTrigger=PropertyChanged}"
                  PreviewMouseLeftButtonUp="tr_threemodel_PreviewMouseLeftButtonUp">
            <TreeView.ItemTemplate>
                <HierarchicalDataTemplate ItemsSource="{Binding SubDatas,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
                    <DockPanel>
                        <CheckBox Name="cb_Check" Visibility="{Binding IsShow ,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
                                  IsChecked="{Binding IsCheck,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
                        <Label Content="{Binding Node,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
                               Background="Transparent" BorderThickness="0"  HorizontalAlignment="Left"
                               PreviewMouseLeftButtonDown="Label_PreviewMouseLeftButtonDown"/>
                    </DockPanel>
                </HierarchicalDataTemplate>
            </TreeView.ItemTemplate>
        </TreeView>

        <TextBlock Name="tb_stru" Text="结构"  Grid.Column="1" Grid.Row="0"  FontSize="20"  HorizontalAlignment="Center"
                   PreviewMouseLeftButtonDown="tb_stru_PreviewMouseLeftButtonDown"/>
        <TreeView x:Name="tr_threemode2" Grid.Column="1" Grid.Row="1" ItemsSource="{Binding UpdateSourceTrigger=PropertyChanged}"
                  PreviewMouseLeftButtonUp="tr_threemodel_PreviewMouseLeftButtonUp">
            <TreeView.ItemTemplate>
                <HierarchicalDataTemplate ItemsSource="{Binding SubDatas,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
                    <DockPanel>
                        <CheckBox Name="cb_Check" Visibility="{Binding IsShow,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
                                  IsChecked="{Binding IsCheck,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
                        <Label Content="{Binding Node,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" 
                               Background="Transparent" BorderThickness="0" HorizontalAlignment="Left" />
                    </DockPanel>
                </HierarchicalDataTemplate>
            </TreeView.ItemTemplate>
        </TreeView>

        <TextBlock Name="tb_water" Text="给排水"  Grid.Column="2" Grid.Row="0"  FontSize="20" HorizontalAlignment="Center" 
                   PreviewMouseLeftButtonDown="tb_water_PreviewMouseLeftButtonDown" />
        <TreeView x:Name="tr_threemode3" Grid.Column="2" Grid.Row="1"  ItemsSource="{Binding UpdateSourceTrigger=PropertyChanged}"
                  PreviewMouseLeftButtonUp="tr_threemodel_PreviewMouseLeftButtonUp" >
            <TreeView.ItemTemplate>
                <HierarchicalDataTemplate ItemsSource="{Binding SubDatas,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
                    <DockPanel>
                        <CheckBox Name="cb_Check" Visibility="{Binding IsShow,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
                                  IsChecked="{Binding IsCheck,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
                        <Label Content="{Binding Node,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" 
                               Background="Transparent" BorderThickness="0" HorizontalAlignment="Left" />
                    </DockPanel>
                </HierarchicalDataTemplate>
            </TreeView.ItemTemplate>
        </TreeView>

        <TextBlock Name="tb_warm" Text="暖通"  Grid.Column="3" Grid.Row="0"  FontSize="20"  HorizontalAlignment="Center" 
                   PreviewMouseLeftButtonDown="tb_warm_PreviewMouseLeftButtonDown" />
        <TreeView x:Name="tr_threemode4" Grid.Column="3" Grid.Row="1"  ItemsSource="{Binding UpdateSourceTrigger=PropertyChanged}"
                  PreviewMouseLeftButtonUp="tr_threemodel_PreviewMouseLeftButtonUp" >
            <TreeView.ItemTemplate>
                <HierarchicalDataTemplate ItemsSource="{Binding SubDatas,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
                    <DockPanel>
                        <CheckBox Name="cb_Check" Visibility="{Binding IsShow,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" 
                                  IsChecked="{Binding IsCheck,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
                        <Label Content="{Binding Node,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" 
                               Background="Transparent" BorderThickness="0" HorizontalAlignment="Left" />
                    </DockPanel>
                </HierarchicalDataTemplate>
            </TreeView.ItemTemplate>
        </TreeView>

        <TextBlock Name="tb_ele" Text="电气"  Grid.Column="4" Grid.Row="0"  FontSize="20" HorizontalAlignment="Center" 
                   PreviewMouseLeftButtonDown="tb_ele_PreviewMouseLeftButtonDown"/>
        <TreeView x:Name="tr_threemode5"  Grid.Column="4" Grid.Row="1"  ItemsSource="{Binding UpdateSourceTrigger=PropertyChanged}"
                  PreviewMouseLeftButtonUp="tr_threemodel_PreviewMouseLeftButtonUp" >
            <TreeView.ItemTemplate>
                <HierarchicalDataTemplate ItemsSource="{Binding SubDatas,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
                    <DockPanel>
                        <CheckBox Name="cb_Check" Visibility="{Binding IsShow,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
                                  IsChecked="{Binding IsCheck,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
                        <Label Content="{Binding Node,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
                               Background="Transparent" BorderThickness="0" HorizontalAlignment="Left" />
                    </DockPanel>
                </HierarchicalDataTemplate>
            </TreeView.ItemTemplate>
        </TreeView>

    </Grid>

</Page>
