Browse Source

Remove ILSpy-specific triggers from Generic.xaml

pull/2606/head
Siegfried Pammer 3 years ago
parent
commit
104aafbd5d
  1. 34
      ILSpy/MainWindow.xaml
  2. 8
      SharpTreeView/Themes/Generic.xaml

34
ILSpy/MainWindow.xaml

@ -31,7 +31,39 @@
ShowRoot="False" ShowRoot="False"
AllowDropOrder="True" AllowDropOrder="True"
AllowDrop="True" AllowDrop="True"
BorderThickness="0" Visibility="Visible" /> BorderThickness="0" Visibility="Visible">
<tv:SharpTreeView.ItemContainerStyle>
<Style TargetType="tv:SharpTreeViewItem">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type tv:SharpTreeViewItem}">
<Border Background="Transparent">
<Border Background="{TemplateBinding Background}">
<tv:SharpTreeNodeView x:Name="nodeView" HorizontalAlignment="Left" />
</Border>
</Border>
<ControlTemplate.Triggers>
<DataTrigger Binding="{Binding IsAutoLoaded}" Value="True">
<Setter Property="Foreground" Value="SteelBlue" />
</DataTrigger>
<DataTrigger Binding="{Binding IsPublicAPI}" Value="False">
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
</DataTrigger>
<Trigger Property="IsSelected" Value="True">
<Setter TargetName="nodeView" Property="TextBackground" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" />
<Setter TargetName="nodeView" Property="Foreground" Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}" />
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter TargetName="nodeView" Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</tv:SharpTreeView.ItemContainerStyle>
</tv:SharpTreeView>
<DataTemplate x:Key="AssemblyListPaneTemplate"> <DataTemplate x:Key="AssemblyListPaneTemplate">
<ContentControl Content="{StaticResource AssemblyTreeView}" /> <ContentControl Content="{StaticResource AssemblyTreeView}" />

8
SharpTreeView/Themes/Generic.xaml

@ -183,14 +183,6 @@
</Border> </Border>
</Border> </Border>
<ControlTemplate.Triggers> <ControlTemplate.Triggers>
<DataTrigger Binding="{Binding IsAutoLoaded}"
Value="True">
<Setter Property="Foreground" Value="SteelBlue" />
</DataTrigger>
<DataTrigger Binding="{Binding IsPublicAPI}"
Value="False">
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
</DataTrigger>
<Trigger Property="IsSelected" <Trigger Property="IsSelected"
Value="True"> Value="True">
<Setter TargetName="nodeView" <Setter TargetName="nodeView"

Loading…
Cancel
Save