alielie
2025-06-12 c1c3772a11b1f3fbad8846cc714120771d85fa53
HMI.UI/Controls/treegrid/Themes/TreeItemContentControl.xaml
@@ -114,6 +114,8 @@
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="BorderBrush" Value="LightGray"/>
        <Setter Property="Foreground" Value="{Binding Foreground,RelativeSource={RelativeSource Mode=FindAncestor,
AncestorType=DataGridCell,AncestorLevel=1}}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:TreeItemContentControl}">
@@ -156,7 +158,10 @@
                                </ListBox>
                            </Grid>
                            <ToggleButton x:Name="ExpanderButton" Grid.Column="1" Style="{StaticResource ClearToggleStyle}" HorizontalAlignment="Left"
                            <ToggleButton x:Name="ExpanderButton"
                                          Cursor="Hand"
                                          Grid.Column="1" Style="{StaticResource ClearToggleStyle}" HorizontalAlignment="Left"
                                          IsChecked="{Binding RelativeSource={RelativeSource Mode=TemplatedParent},Path=TreeData.IsExpanded,Mode=TwoWay}"
                                          Content="{Binding RelativeSource={RelativeSource Mode=TemplatedParent},Path=TreeData.IconType}"
                                          ContentTemplate="{StaticResource Icon_Template}"