| | |
| | | <DataTemplate> |
| | | <Grid x:Name="lineGrid" Width="15" Margin="0"> |
| | | <Line x:Name="line" X1="7.5" Y1="0" X2="7.5" Y2="{Binding ElementName=lineGrid,Path=ActualHeight}" StrokeThickness="1" |
| | | Stroke="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=DataGridRow},Path=Foreground}" StrokeDashArray="1,1"/> |
| | | Stroke="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=local:TreeItemContentControl},Path=IconLineStroke}" StrokeDashArray="1,1"/> |
| | | </Grid> |
| | | <!--这里放开有个问题,会让只有一个根节点的树列表显示错误--> |
| | | <!--<DataTemplate.Triggers> |
| | | <DataTrigger Binding="{Binding IsLastItem}" Value="true"> |
| | | <Setter Property="Visibility" Value="Collapsed"/> |
| | | </DataTrigger> |
| | | </DataTemplate.Triggers>--> |
| | | </DataTemplate> |
| | | </ListBox.ItemTemplate> |
| | | </ListBox> |