WinDrawSpace.xaml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <windows1:WinBase x:Class="DrawData.WinDrawSpace"
  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:DrawData"
  7. xmlns:windows1="clr-namespace:SAGA.RevitUtils.Windows;assembly=SAGA.RevitUtils"
  8. mc:Ignorable="d"
  9. Title="空间关系查看" Height="800" Width="1000" Name="win" WindowState="Maximized" >
  10. <Window.Resources>
  11. <Style TargetType="Button">
  12. <Setter Property="Width" Value="100"/>
  13. <Setter Property="Height" Value="28"/>
  14. <Setter Property="Margin" Value="20,0,30,0"/>
  15. </Style>
  16. </Window.Resources>
  17. <Grid Name="grid">
  18. <Grid.ColumnDefinitions>
  19. <ColumnDefinition Width="170"/>
  20. <ColumnDefinition Width="*"/>
  21. </Grid.ColumnDefinitions>
  22. <Grid.RowDefinitions>
  23. <RowDefinition Height="0"/>
  24. <RowDefinition Height="*"/>
  25. <RowDefinition Height="20"/>
  26. </Grid.RowDefinitions>
  27. <local:UcShowElement x:Name="ucShowElement"
  28. Grid.Column="1"
  29. Grid.Row="1" >
  30. </local:UcShowElement>
  31. <TreeView Name="rootNode" SelectedItemChanged="RootNode_OnSelectedItemChanged"
  32. Grid.Column="0" Grid.Row="0" Grid.RowSpan="3" >
  33. <TreeView.ItemContainerStyle>
  34. <Style TargetType="{x:Type TreeViewItem}">
  35. <Setter Property="IsExpanded" Value="True" />
  36. </Style>
  37. </TreeView.ItemContainerStyle>
  38. <TreeView.ItemTemplate>
  39. <HierarchicalDataTemplate ItemsSource="{Binding Path=Childrens}">
  40. <TextBlock Text="{Binding EName}"></TextBlock>
  41. </HierarchicalDataTemplate>
  42. </TreeView.ItemTemplate>
  43. </TreeView>
  44. </Grid>
  45. </windows1:WinBase>