| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <Window x:Class="SAGA.GplotDrawData.WinDrawSpace_Web"
- 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:cefSharpWpf="clr-namespace:CEFSharpWPF;assembly=CEFSharpWPF"
- mc:Ignorable="d"
- Title="空间关系查看" Height="800" Width="1000" Name="win" WindowState="Maximized" >
- <Window.Resources>
- <Style TargetType="Button">
- <Setter Property="Width" Value="100"/>
- <Setter Property="Height" Value="28"/>
- <Setter Property="Margin" Value="20,0,30,0"/>
- </Style>
- </Window.Resources>
- <Grid Name="grid">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="0"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="20"/>
- </Grid.RowDefinitions>
-
- <cefSharpWpf:UcGplotShow x:Name="ucShowElement"
- Grid.Column="1"
- Grid.Row="1" >
- </cefSharpWpf:UcGplotShow>
- <TreeView Name="rootNode" Width="170" SelectedItemChanged="RootNode_OnSelectedItemChanged"
- Grid.Column="0" Grid.Row="0" Grid.RowSpan="3" >
- <TreeView.ItemContainerStyle>
- <Style TargetType="{x:Type TreeViewItem}">
- <Setter Property="IsExpanded" Value="True" />
- </Style>
- </TreeView.ItemContainerStyle>
- <TreeView.ItemTemplate>
- <HierarchicalDataTemplate ItemsSource="{Binding Path=Childrens}">
- <TextBlock Name="Block" Text="{Binding EName}" HorizontalAlignment="Stretch"></TextBlock>
- <HierarchicalDataTemplate.Triggers>
- <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=TreeViewItem},Path=IsSelected}" Value="True">
- <Setter TargetName="Block" Property="Background" Value="DodgerBlue"></Setter>
- <Setter TargetName="Block" Property="Foreground" Value="White"></Setter>
- </DataTrigger>
- </HierarchicalDataTemplate.Triggers>
- </HierarchicalDataTemplate>
- </TreeView.ItemTemplate>
- </TreeView>
- </Grid>
- </Window>
|