FullProfessionPage.xaml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <Page x:Class="CollaborativePlatformMain.Form.MessageSubPage.FullProfessionPage"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:CollaborativePlatformMain.Form.MessageSubPage"
  7. mc:Ignorable="d"
  8. Title="FullProfessionPage">
  9. <Grid Name="gridName">
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="1*"/>
  12. <RowDefinition Height="9*"/>
  13. </Grid.RowDefinitions>
  14. <Grid.ColumnDefinitions>
  15. <ColumnDefinition Width="3*"/>
  16. <ColumnDefinition Width="1*"/>
  17. <ColumnDefinition Width="1*"/>
  18. <ColumnDefinition Width="1*"/>
  19. <ColumnDefinition Width="1*"/>
  20. </Grid.ColumnDefinitions>
  21. <TextBlock Name="tb_arch" Text="建筑" Grid.Column="0" Grid.Row="0" FontSize="20" HorizontalAlignment="Center"
  22. PreviewMouseLeftButtonDown="tb_arch_PreviewMouseLeftButtonDown"/>
  23. <TreeView x:Name="tr_threemodel" Grid.Column="0" Grid.Row="1" ItemsSource="{Binding UpdateSourceTrigger=PropertyChanged}"
  24. PreviewMouseLeftButtonUp="tr_threemodel_PreviewMouseLeftButtonUp">
  25. <TreeView.ItemTemplate>
  26. <HierarchicalDataTemplate ItemsSource="{Binding SubDatas,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  27. <DockPanel>
  28. <CheckBox Name="cb_Check" Visibility="{Binding IsShow ,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
  29. IsChecked="{Binding IsCheck,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
  30. <Label Content="{Binding Node,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
  31. Background="Transparent" BorderThickness="0" HorizontalAlignment="Left"
  32. PreviewMouseLeftButtonDown="Label_PreviewMouseLeftButtonDown"/>
  33. </DockPanel>
  34. </HierarchicalDataTemplate>
  35. </TreeView.ItemTemplate>
  36. </TreeView>
  37. <TextBlock Name="tb_stru" Text="结构" Grid.Column="1" Grid.Row="0" FontSize="20" HorizontalAlignment="Center"
  38. PreviewMouseLeftButtonDown="tb_stru_PreviewMouseLeftButtonDown"/>
  39. <TreeView x:Name="tr_threemode2" Grid.Column="1" Grid.Row="1" ItemsSource="{Binding UpdateSourceTrigger=PropertyChanged}"
  40. PreviewMouseLeftButtonUp="tr_threemodel_PreviewMouseLeftButtonUp">
  41. <TreeView.ItemTemplate>
  42. <HierarchicalDataTemplate ItemsSource="{Binding SubDatas,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  43. <DockPanel>
  44. <CheckBox Name="cb_Check" Visibility="{Binding IsShow,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
  45. IsChecked="{Binding IsCheck,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
  46. <Label Content="{Binding Node,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
  47. Background="Transparent" BorderThickness="0" HorizontalAlignment="Left" />
  48. </DockPanel>
  49. </HierarchicalDataTemplate>
  50. </TreeView.ItemTemplate>
  51. </TreeView>
  52. <TextBlock Name="tb_water" Text="给排水" Grid.Column="2" Grid.Row="0" FontSize="20" HorizontalAlignment="Center"
  53. PreviewMouseLeftButtonDown="tb_water_PreviewMouseLeftButtonDown" />
  54. <TreeView x:Name="tr_threemode3" Grid.Column="2" Grid.Row="1" ItemsSource="{Binding UpdateSourceTrigger=PropertyChanged}"
  55. PreviewMouseLeftButtonUp="tr_threemodel_PreviewMouseLeftButtonUp" >
  56. <TreeView.ItemTemplate>
  57. <HierarchicalDataTemplate ItemsSource="{Binding SubDatas,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  58. <DockPanel>
  59. <CheckBox Name="cb_Check" Visibility="{Binding IsShow,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
  60. IsChecked="{Binding IsCheck,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
  61. <Label Content="{Binding Node,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
  62. Background="Transparent" BorderThickness="0" HorizontalAlignment="Left" />
  63. </DockPanel>
  64. </HierarchicalDataTemplate>
  65. </TreeView.ItemTemplate>
  66. </TreeView>
  67. <TextBlock Name="tb_warm" Text="暖通" Grid.Column="3" Grid.Row="0" FontSize="20" HorizontalAlignment="Center"
  68. PreviewMouseLeftButtonDown="tb_warm_PreviewMouseLeftButtonDown" />
  69. <TreeView x:Name="tr_threemode4" Grid.Column="3" Grid.Row="1" ItemsSource="{Binding UpdateSourceTrigger=PropertyChanged}"
  70. PreviewMouseLeftButtonUp="tr_threemodel_PreviewMouseLeftButtonUp" >
  71. <TreeView.ItemTemplate>
  72. <HierarchicalDataTemplate ItemsSource="{Binding SubDatas,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  73. <DockPanel>
  74. <CheckBox Name="cb_Check" Visibility="{Binding IsShow,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
  75. IsChecked="{Binding IsCheck,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
  76. <Label Content="{Binding Node,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
  77. Background="Transparent" BorderThickness="0" HorizontalAlignment="Left" />
  78. </DockPanel>
  79. </HierarchicalDataTemplate>
  80. </TreeView.ItemTemplate>
  81. </TreeView>
  82. <TextBlock Name="tb_ele" Text="电气" Grid.Column="4" Grid.Row="0" FontSize="20" HorizontalAlignment="Center"
  83. PreviewMouseLeftButtonDown="tb_ele_PreviewMouseLeftButtonDown"/>
  84. <TreeView x:Name="tr_threemode5" Grid.Column="4" Grid.Row="1" ItemsSource="{Binding UpdateSourceTrigger=PropertyChanged}"
  85. PreviewMouseLeftButtonUp="tr_threemodel_PreviewMouseLeftButtonUp" >
  86. <TreeView.ItemTemplate>
  87. <HierarchicalDataTemplate ItemsSource="{Binding SubDatas,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
  88. <DockPanel>
  89. <CheckBox Name="cb_Check" Visibility="{Binding IsShow,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
  90. IsChecked="{Binding IsCheck,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
  91. <Label Content="{Binding Node,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
  92. Background="Transparent" BorderThickness="0" HorizontalAlignment="Left" />
  93. </DockPanel>
  94. </HierarchicalDataTemplate>
  95. </TreeView.ItemTemplate>
  96. </TreeView>
  97. </Grid>
  98. </Page>