<Page x:Class="CollaborativePlatformMain.Form.MessageSubPage.SeconThreeDimensionalPage"
        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="SeconThreeDimensionalPage" 
        Width="663" Height="430"
        Loaded="Window_Loaded">
    <DockPanel>

        <!--中间-->
        <StackPanel Height="430">
            <StackPanel Width="130" Height="430" Background="WhiteSmoke"  Name="sp_three">

                <TreeView x:Name="tr_threemodel" PreviewMouseLeftButtonUp="tr_threemodel_PreviewMouseLeftButtonUp"
                                  Width="180"  Height="430" HorizontalAlignment="Left" Background="WhiteSmoke">
                    <TreeView.ItemTemplate>
                        <HierarchicalDataTemplate ItemsSource="{Binding SubDatas}">
                            <Button Content="{Binding Node}" Click="Button_Click" HorizontalAlignment="Left"/>
                        </HierarchicalDataTemplate>
                    </TreeView.ItemTemplate>
                </TreeView>


                <!--<Button Name="bt_autoModel" Content="自动建模" Width="180" Height="30" Click="bt_autoModel_Click" HorizontalAlignment="Left"/>
                <Button Name="bt_modelUser" Content="模型应用" Width="180" Height="30" Click="bt_modelUser_Click" HorizontalAlignment="Left"/>
                <Button Name="bt_modelEmploy" Content="模型服务" Width="180" Height="30" Click="bt_modelEmploy_Click" HorizontalAlignment="Left"/>-->
            </StackPanel>
        </StackPanel>

        <StackPanel Margin="10,0,0,0" Name="me_right" HorizontalAlignment="Left"  Height="430"  Width="483">

            <!--自动建模-->
            <StackPanel Name="sp_autoModel" Visibility="Collapsed">

                <Button Name="bt_creatLevel" Margin="10,10,0,0" Content="创建标高体系" HorizontalAlignment="Left" Click="bt_creatLevel_Click"/>

                <StackPanel Name="sp_creatLevel" Margin="30,5,0,0">

                </StackPanel>

                <Button Name="upDrawing" Content="上传" Width="80" Height="26" Click="upDrawing_Click"/>
            </StackPanel>

            <!--模型应用-->
            <StackPanel Name="sp_modelUser" Visibility="Collapsed" Margin="10,10,0,0">

                <DockPanel>
                    <Label Content="选择模型："/>
                    <TextBox Text="双击选择模型地址" Width="120" Height="26" Foreground="Red" HorizontalAlignment="Left" MouseDoubleClick="TextBox_MouseDoubleClick"/>
                </DockPanel>

                <DockPanel HorizontalAlignment="Left" Margin="50,10,0,0">
                    <Button Content="上传" Width="80" Height="26"/>
                </DockPanel>

            </StackPanel>

            <!--模型服务-->
            <StackPanel Name="sp_modelEmploy" Visibility="Collapsed" Margin="10,10,0,0" Height="430">

                <DockPanel>
                    <Label Content="选择模型" Margin="0,0,10,0"/>
                    <TextBox Text="双击选择模型地址" Width="300" Height="26" Foreground="Red" HorizontalAlignment="Left" MouseDoubleClick="TextBox_MouseDoubleClick"/>
                </DockPanel>

                <StackPanel HorizontalAlignment="Left" Margin="0,30,0,0">

                    <Label Content="对象命名                    上传图纸" Width="190" />

                    <DockPanel>

                        <StackPanel  Name="sp_objectName" Margin="0,5,0,5">

                            <!--<TextBox  Width="80"/>-->

                        </StackPanel>

                        <StackPanel Name="sp_objectDraw" Margin="0,5,0,5" HorizontalAlignment="Right">
                            
                            <!--<Button Content="上传" Width="80"/>-->
                            
                        </StackPanel>
                        
                    </DockPanel>

                    <Button Content="新增" Width="190" Click="Button_Click_1"/>

                </StackPanel>


                <StackPanel Margin="0,20,0,0">
                    <Button Content="联系服务专员" HorizontalAlignment="Left"/>
                </StackPanel>
            </StackPanel>

        </StackPanel>

    </DockPanel>
</Page>
