<Window x:Class="CollaborativePlatformProject.CollaborationPlatform.Form.HomepageForm"
        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:CollaborativePlatformProject.CollaborationPlatform.Form"
        xmlns:HandyControl="clr-namespace:HandyControl.Controls;assembly=HandyControl"
        xmlns:LayUI="clr-namespace:LayUI.Wpf.Controls;assembly=LayUI.Wpf"
        mc:Ignorable="d"
        AllowsTransparency="True"
        Background=" Transparent"
        WindowStartupLocation="CenterScreen"
        WindowStyle="None"
        Title="" Height="600" Width="800" ResizeMode="NoResize">
    <LayUI:LayTitleBar Background="{DynamicResource Blue}"   CornerRadius="10"
                       WindowState="{Binding WindowState, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
        <LayUI:LayTitleBar.Header>
            <Border Height="35">
                <DockPanel>
                    <TextBlock Margin="10,0" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="White"
                               Text="协同平台" />
                </DockPanel>
            </Border>
        </LayUI:LayTitleBar.Header>

        <Border  CornerRadius="0 0 10 10" Background="White">
            <StackPanel>
                <DockPanel Background="{DynamicResource Blue}">

                    <DockPanel Margin="5 10 0 10" Width="64" Height="64" HorizontalAlignment="Left" Background="AntiqueWhite" />

                    <!--<Border BorderBrush="Gray" Width="64" Height="64" 
                    Background="AntiqueWhite"  BorderThickness="0.5,0.5,0.5,0.5">
                    <StackPanel  Orientation="Horizontal" FlowDirection="LeftToRight">
                        <Border BorderBrush="Red"  BorderThickness="0,0.5,0.5,0.5">
                            -->
                    <!-- <Image Source="Assets/Image/logo.jpg" />-->
                    <!--
                        </Border>
                        <Button Visibility="Collapsed" Content="新增项目" Height="30" Width="70" Margin="100,15,0,0" x:Name="create_Pro" Click="create_Pro_Click" />
                    </StackPanel>
                </Border>-->
                </DockPanel>

                <DockPanel Height="430">

                    <!--最左边-->
                    <StackPanel Width="120" Name="sp_left">

                        <Menu Background="{DynamicResource Blue}" Height="430" Name="mu_leftMenu" FontFamily="黑体" FontSize="14">

                            <MenuItem  Width="118" Height="40" Header="消息      "
                                      PreviewMouseLeftButtonDown="message_Click"></MenuItem>

                            <MenuItem Width="118" Height="40" Header="项目      "
                                      PreviewMouseLeftButtonDown="project_Click"></MenuItem>

                            <MenuItem Width="118" Height="40" Header="联系人    "
                                      PreviewMouseLeftButtonDown="contacts_Click"></MenuItem>

                            <MenuItem Width="118" Height="40" Header="图块大样库"
                                      PreviewMouseLeftButtonDown="gallery_Click"></MenuItem>

                            <MenuItem Width="118" Height="40" Header="工具库    "
                                      PreviewMouseLeftButtonDown="tool_Click"></MenuItem>
                        </Menu>
                    </StackPanel>

                    <!--消息-->
                    <DockPanel Name="dp_message" Visibility="Collapsed">
                        <!--中间-->
                        <StackPanel Width="180" HorizontalAlignment="Left" Background="WhiteSmoke">
                            <StackPanel>

                                <DockPanel   Margin="0 0 0 0" Name="sp_hzNavigation" Height="30" Visibility="Collapsed">

                                    <Menu>
                                        <MenuItem Header="通知公告" Click="me_announcementClick" />
                                        <MenuItem Header="项目" Click="me_projectClick" />
                                        <MenuItem Header="系统" Click="me_systemClick" />
                                    </Menu>
                                </DockPanel>

                                <StackPanel Background="WhiteSmoke"  Name="me_message">
                                </StackPanel>
                            </StackPanel>
                        </StackPanel>
                        <!--最右边-->
                        <StackPanel Name="me_right"  Height="400"  Width="483"
                                Margin="0 10 0 0"  HorizontalAlignment="Left">
                        </StackPanel>
                    </DockPanel>

                    <!--项目-->
                    <DockPanel Name="dp_project" Visibility="Collapsed">

                        <!--中间-->
                        <!--
                    <StackPanel Width="180" Height="123" HorizontalAlignment="Left" Background="WhiteSmoke">
                    </StackPanel>-->

                        <Grid>

                            <Grid.RowDefinitions>
                                <RowDefinition Height="28" />
                                <RowDefinition />
                            </Grid.RowDefinitions>

                            <Button Grid.Row="0" Width="180" Content="新增项目" Click="bt_addPro" />
                            <!--中间-->
                            <TreeView  Grid.Row="1" x:Name="tr_vw"  Visibility="Visible" PreviewMouseLeftButtonUp="tv_projectLeftButtonUp"
                                  Width="180"  HorizontalAlignment="Left" Background="WhiteSmoke">
                                <TreeView.ItemTemplate>
                                    <HierarchicalDataTemplate ItemsSource="{Binding Children}">
                                        <TextBlock Text="{Binding Name}" />
                                    </HierarchicalDataTemplate>
                                </TreeView.ItemTemplate>
                            </TreeView>
                        </Grid>

                        <!--最右边-->
                        <StackPanel
                            Name="sp_info" Width="483" Margin="0 10 0 0"
                            HorizontalAlignment="Left" Visibility="Collapsed">

                            <ListView HorizontalAlignment="Left" Background="White" BorderThickness="0"
                      VerticalAlignment="Top" ScrollViewer.HorizontalScrollBarVisibility="Hidden"
                      ScrollViewer.VerticalScrollBarVisibility="Hidden" Width="483"
                      x:Name="lv_projectInfo"  Height="300" d:ItemsSource="{d:SampleData ItemCount=5}" Visibility="Collapsed">

                                <!--隐藏列头-->
                                <ListView.Resources>
                                    <Style TargetType="{x:Type GridViewColumnHeader}">
                                        <Setter Property="Visibility" Value="Collapsed" />
                                    </Style>
                                </ListView.Resources>

                                <ListView.ItemContainerStyle>
                                    <Style TargetType="ListViewItem">
                                        <Setter Property="Height" Value="35" />
                                    </Style>
                                </ListView.ItemContainerStyle>

                                <ListView.View>
                                    <GridView  x:Name="gridview">
                                        <GridViewColumn  Width="190" x:Name="Column1">
                                            <GridViewColumn.CellTemplate>
                                                <DataTemplate>
                                                    <TextBlock  HorizontalAlignment="Left" Height="20" TextWrapping="Wrap"
                                                            Text="{Binding Content}"
                                                            VerticalAlignment="Center" />
                                                </DataTemplate>
                                            </GridViewColumn.CellTemplate>
                                        </GridViewColumn>

                                        <GridViewColumn  Width="130" x:Name="Column2">
                                            <GridViewColumn.CellTemplate>
                                                <DataTemplate>

                                                    <DockPanel>
                                                        <Button  Tag="{Binding}" Content="修改" Click="btn_lv_update" FontSize="13" />
                                                    </DockPanel>
                                                </DataTemplate>
                                            </GridViewColumn.CellTemplate>
                                        </GridViewColumn>
                                    </GridView>
                                </ListView.View>
                            </ListView>
                        </StackPanel>

                        <StackPanel Name="sp_work" Visibility="Collapsed" Height="428" Width="485" VerticalAlignment="Top">

                            <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
                                <TextBlock Text="本专业" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center" PreviewMouseLeftButtonUp="pre_Click" />
                                <TextBlock Text="/" Margin="0,0,0,0" FontSize="20" VerticalAlignment="Center" />
                                <TextBlock Text="全专业" Margin="0,0,0,0" FontSize="20" VerticalAlignment="Center" PreviewMouseLeftButtonUp="all_Click" />
                            </StackPanel>

                            <TreeView x:Name="tr_is" Visibility="Visible" 
                                      PreviewMouseLeftButtonUp="tr_is_PreviewMouseLeftButtonUp" 
                                      Height="370" Width="485" HorizontalAlignment="Left">
                                <TreeView.ItemTemplate>
                                    <HierarchicalDataTemplate ItemsSource="{Binding Children}">
                                        <TextBlock Text="{Binding Name}" />
                                    </HierarchicalDataTemplate>
                                </TreeView.ItemTemplate>
                            </TreeView>

                            <ScrollViewer x:Name="tr_all" Visibility="Collapsed" Height="370" 
                                          HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Hidden">
                                <StackPanel  x:Name="tr_all1" Orientation="Horizontal" Visibility="Visible">

                                    <Border  BorderBrush="Green" BorderThickness="0.5" Width="200">

                                        <StackPanel>

                                            <TextBlock Text="建筑" HorizontalAlignment="Center" FontSize="25" Grid.Row="0" />
                                            <TreeView  x:Name="tv_building" Height="336">
                                                <TreeView.ItemTemplate>
                                                    <HierarchicalDataTemplate ItemsSource="{Binding Children}">
                                                        <TextBlock Text="{Binding Name}" />
                                                    </HierarchicalDataTemplate>
                                                </TreeView.ItemTemplate>
                                            </TreeView>
                                        </StackPanel>
                                    </Border>
                                    <Border  BorderBrush="Green" BorderThickness="0.5,0,0,0.5" Width="200">
                                        <TextBlock Text="结构" HorizontalAlignment="Center" FontSize="25" />
                                    </Border>
                                    <Border  BorderBrush="Green" BorderThickness="0.5,0,0,0.5" Width="200">
                                        <TextBlock Text="给排水" HorizontalAlignment="Center" FontSize="25" />
                                    </Border>
                                    <Border  BorderBrush="Green" BorderThickness="0.5,0,0,0.5" Width="200">
                                        <TextBlock Text="暖通" HorizontalAlignment="Center" FontSize="25" />
                                    </Border>
                                    <Border  BorderBrush="Green" BorderThickness="0.5,0,0,0.5" Width="200">
                                        <TextBlock Text="电气" HorizontalAlignment="Center" FontSize="25" />
                                    </Border>
                                </StackPanel>
                            </ScrollViewer>

                            <DockPanel>
                                <Button Visibility="Collapsed" Name="bt_proBig"  Content="放大" 
                                        HorizontalAlignment="Right" Margin="0 0 10 0" Click="bt_proBigClick"/>
                            </DockPanel>
                        </StackPanel>

                        <StackPanel Name="sp_addPro" Visibility="Collapsed" Width="473" Margin="10 10 0 0">
                            <StackPanel x:Name="gd_top" Orientation="Horizontal">
                                <TextBlock Text="完整的项目信息有助于为您推送规范条文" Margin="0,10,10,10" />
                                <CheckBox Content="不再提醒" Click="close_Click" Margin="10" />
                            </StackPanel>

                            <!--项目名称-->
                            <DockPanel>
                                <LayUI:LayTextBlock Width="80" FontSize="13" Margin="30 0 0 0" Text="项目名称："  VerticalAlignment="Center"></LayUI:LayTextBlock>
                                <TextBox Width="150" Height="25" HorizontalAlignment="Left" Margin="30 0 0 0" x:Name="pro_Name" />
                            </DockPanel>

                            <!--项目地址-->
                            <DockPanel Margin="0 10 0 0">
                                <LayUI:LayTextBlock Width="80" FontSize="13" Margin="30 0 0 0" Text="项目名称："  VerticalAlignment="Center"></LayUI:LayTextBlock>
                                <TextBox Width="150" Height="25" HorizontalAlignment="Left" Margin="30 0 0 0" x:Name="pro_status" />
                            </DockPanel>

                            <TextBlock Text="选择：" FontSize="13" Margin="0,10,0,0" />
                            <TextBlock Text="组建团队：" FontSize="13" Margin="0,2,0,0" />

                            <StackPanel Orientation="Vertical" Margin="20 0 0 0">
                                <StackPanel Orientation="Horizontal" Margin="0,10,0,0">
                                    <TextBlock Text="专业" Margin="20,0,0,0" VerticalAlignment="Center" FontSize="16" />
                                    <TextBlock Text="人员" Margin="120,0,0,0" VerticalAlignment="Center" FontSize="16" />
                                </StackPanel>
                                <StackPanel Margin="5,20,0,0" Orientation="Horizontal">
                                    <TextBlock Text="建筑" Margin="20,0,0,0" VerticalAlignment="Center" />
                                    <Button Margin="120,0,0,0" Content="选择人员" x:Name="bd_btn"
                                        Initialized="bd_Initialized" Click="bd_Click" Height="25" FontSize="8" Width="60">
                                        <Button.ContextMenu>
                                            <ContextMenu Name="contextMenu">
                                                <MenuItem Header="选择通讯录" Name="savePage" Click="savePage_Click" />
                                                <MenuItem Header="临时邀请" Name="saveFile" Click="saveFile_Click" />
                                            </ContextMenu>
                                        </Button.ContextMenu>
                                    </Button>
                                </StackPanel>
                                <StackPanel Margin="5,10,0,0" Orientation="Horizontal">
                                    <TextBlock Text="结构" Margin="20,0,0,0" VerticalAlignment="Center" />
                                    <Button Margin="120,0,0,0" Content="选择人员" x:Name="bd_st"
                                        Initialized="st_Initialized" Click="st_Click" Height="25" FontSize="8" Width="60">
                                        <Button.ContextMenu>
                                            <ContextMenu Name="st_mu">
                                                <MenuItem Header="选择通讯录" Name="st_num" Click="savePage_Click" />
                                                <MenuItem Header="临时邀请" Name="st_tm" Click="saveFile_Click" />
                                            </ContextMenu>
                                        </Button.ContextMenu>
                                    </Button>
                                </StackPanel>
                                <StackPanel Margin="5,10,0,0" Orientation="Horizontal">
                                    <TextBlock Text="给排水" Margin="20,0,0,0" VerticalAlignment="Center" />
                                    <Button Margin="108,0,0,0" Content="选择人员" x:Name="bd_wt"
                                        Initialized="wt_Initialized" Click="wt_Click" Height="25" FontSize="8" Width="60">
                                        <Button.ContextMenu>
                                            <ContextMenu Name="wt_mu">
                                                <MenuItem Header="选择通讯录" Name="wt_num" Click="savePage_Click" />
                                                <MenuItem Header="临时邀请" Name="wt_tm" Click="saveFile_Click" />
                                            </ContextMenu>
                                        </Button.ContextMenu>
                                    </Button>
                                </StackPanel>
                                <StackPanel Margin="5,10,0,0" Orientation="Horizontal">
                                    <TextBlock Text="暖通" Margin="20,0,0,0" VerticalAlignment="Center" />
                                    <Button Margin="120,0,0,0" Content="选择人员" x:Name="bd_wm"
                                        Initialized="wm_Initialized" Click="wm_Click" Height="25" FontSize="8" Width="60">
                                        <Button.ContextMenu>
                                            <ContextMenu Name="wm_mu">
                                                <MenuItem Header="选择通讯录" Name="wm_num" Click="savePage_Click" />
                                                <MenuItem Header="临时邀请" Name="wm_tm" Click="saveFile_Click" />
                                            </ContextMenu>
                                        </Button.ContextMenu>
                                    </Button>
                                </StackPanel>
                                <StackPanel Margin="5,10,0,0" Orientation="Horizontal">
                                    <TextBlock Text="电气" Margin="20,0,0,0" VerticalAlignment="Center" />
                                    <Button Margin="120,0,0,0" Content="选择人员" x:Name="bd_ele"
                                        Initialized="ele_Initialized" Click="ele_Click" Height="25" FontSize="8" Width="60">
                                        <Button.ContextMenu>
                                            <ContextMenu Name="ele_mu">
                                                <MenuItem Header="选择通讯录" Name="ele_num" Click="savePage_Click" />
                                                <MenuItem Header="临时邀请" Name="ele_tm" Click="saveFile_Click" />
                                            </ContextMenu>
                                        </Button.ContextMenu>
                                    </Button>
                                </StackPanel>
                                <StackPanel Margin="5,0,0,0" Orientation="Horizontal">
                                    <TextBlock Text="+" Margin="25,0,0,0" VerticalAlignment="Center" />
                                </StackPanel>
                            </StackPanel>
                            <Button Content="提交" Width="50" Click="submit_Click" Margin="0,10,0,0" />
                        </StackPanel>
                    </DockPanel>

                    <!--联系人-->
                    <DockPanel Name="dp_contacts" Visibility="Collapsed">
                        <StackPanel Name="sp_contacts" Width="180" HorizontalAlignment="Left" Background="WhiteSmoke">
                        </StackPanel>

                        <!--最右边-->
                        <StackPanel Height="420"  VerticalAlignment="Top" Width="483"
                                Margin="0 10 0 0"  HorizontalAlignment="Left">
                        </StackPanel>
                    </DockPanel>

                    <!--工具库-->
                    <DockPanel Name="dp_tools" Visibility="Collapsed">

                        <StackPanel Name="sp_tools" Width="180" HorizontalAlignment="Left" Background="WhiteSmoke">
                        </StackPanel>

                        <!--最右边-->
                        <StackPanel Height="420"  VerticalAlignment="Top" Width="483"
                                Margin="0 10 0 0"  HorizontalAlignment="Left">

                            <WrapPanel Name="wp_tools" Margin="0 0 0 0" Width="490"  Height="370" HorizontalAlignment="Left">
                            </WrapPanel>
                            <DockPanel>
                                <Button HorizontalAlignment="Right" Margin="0 0 20 0" Width="110" Click="bt_addTools" Content="添加漂浮工具" />
                            </DockPanel>
                        </StackPanel>
                    </DockPanel>
                </DockPanel>
                <Border  CornerRadius="0 0 10 10" Background="{DynamicResource Blue}">

                    <DockPanel Height="37">
                        <DockPanel Margin="113 0 0 0">

                            <TextBlock   Text="青蓝规范小助手:" FontFamily="黑体" FontSize="18" Margin="10 0 0 0" VerticalAlignment="Center" HorizontalAlignment="Left" />
                            <TextBox x:Name="tb_blue" Width="200" Height="30" Margin="10,0,0,0" />
                            <Button Content="点我搜索" Width="90" HorizontalAlignment="Left" Height="30" Margin="10,0,0,0" FontSize="16" />
                        </DockPanel>
                    </DockPanel>
                </Border>
            </StackPanel>
        </Border>
    </LayUI:LayTitleBar>
</Window>