ProjectControls.xaml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <UserControl x:Class="CollaborativePlatformMain.Form.UserControlForm.ProjectControls"
  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"
  7. mc:Ignorable="d" Width="800" Height="550">
  8. <StackPanel Orientation="Horizontal">
  9. <Border BorderBrush="Green" BorderThickness="0.5,0,0,0.5" Width="200">
  10. <StackPanel>
  11. <TextBlock Text="建筑" HorizontalAlignment="Center" FontSize="25" Grid.Row="0"/>
  12. <TreeView x:Name="tv_building" Height="518">
  13. <TreeView.ItemTemplate>
  14. <HierarchicalDataTemplate ItemsSource="{Binding Children}">
  15. <TextBlock Text="{Binding Name}"/>
  16. </HierarchicalDataTemplate>
  17. </TreeView.ItemTemplate>
  18. </TreeView>
  19. </StackPanel>
  20. </Border>
  21. <Border BorderBrush="Green" BorderThickness="0.5,0,0,0.5" Width="200">
  22. <TextBlock Text="结构" HorizontalAlignment="Center" FontSize="25"/>
  23. </Border>
  24. <Border BorderBrush="Green" BorderThickness="0.5,0,0,0.5" Width="200">
  25. <TextBlock Text="给排水" HorizontalAlignment="Center" FontSize="25"/>
  26. </Border>
  27. <Border BorderBrush="Green" BorderThickness="0.5,0,0,0.5" Width="200">
  28. <TextBlock Text="暖通" HorizontalAlignment="Center" FontSize="25"/>
  29. </Border>
  30. <Border BorderBrush="Green" BorderThickness="0.5,0,0,0.5" Width="200">
  31. <TextBlock Text="电气" HorizontalAlignment="Center" FontSize="25"/>
  32. </Border>
  33. </StackPanel>
  34. </UserControl>