WinDrawSpace-Web.xaml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <Window x:Class="SAGA.GplotDrawData.WinDrawSpace_Web"
  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:cefSharpWpf="clr-namespace:CEFSharpWPF;assembly=CEFSharpWPF"
  7. mc:Ignorable="d"
  8. Title="空间关系查看" Height="800" Width="1000" Name="win" WindowState="Maximized" >
  9. <Window.Resources>
  10. <Style TargetType="Button">
  11. <Setter Property="Width" Value="100"/>
  12. <Setter Property="Height" Value="28"/>
  13. <Setter Property="Margin" Value="20,0,30,0"/>
  14. </Style>
  15. </Window.Resources>
  16. <Grid Name="grid">
  17. <Grid.ColumnDefinitions>
  18. <ColumnDefinition Width="Auto"/>
  19. <ColumnDefinition Width="*"/>
  20. </Grid.ColumnDefinitions>
  21. <Grid.RowDefinitions>
  22. <RowDefinition Height="0"/>
  23. <RowDefinition Height="*"/>
  24. <RowDefinition Height="20"/>
  25. </Grid.RowDefinitions>
  26. <cefSharpWpf:UcGplotShow x:Name="ucShowElement"
  27. Grid.Column="1"
  28. Grid.Row="1" >
  29. </cefSharpWpf:UcGplotShow>
  30. <TreeView Name="rootNode" Width="170" SelectedItemChanged="RootNode_OnSelectedItemChanged"
  31. Grid.Column="0" Grid.Row="0" Grid.RowSpan="3" >
  32. <TreeView.ItemContainerStyle>
  33. <Style TargetType="{x:Type TreeViewItem}">
  34. <Setter Property="IsExpanded" Value="True" />
  35. </Style>
  36. </TreeView.ItemContainerStyle>
  37. <TreeView.ItemTemplate>
  38. <HierarchicalDataTemplate ItemsSource="{Binding Path=Childrens}">
  39. <TextBlock Name="Block" Text="{Binding EName}" HorizontalAlignment="Stretch"></TextBlock>
  40. <HierarchicalDataTemplate.Triggers>
  41. <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=TreeViewItem},Path=IsSelected}" Value="True">
  42. <Setter TargetName="Block" Property="Background" Value="DodgerBlue"></Setter>
  43. <Setter TargetName="Block" Property="Foreground" Value="White"></Setter>
  44. </DataTrigger>
  45. </HierarchicalDataTemplate.Triggers>
  46. </HierarchicalDataTemplate>
  47. </TreeView.ItemTemplate>
  48. </TreeView>
  49. </Grid>
  50. </Window>