Changeset 8380


Ignore:
Timestamp:
Sep 23, 2019, 6:23:40 PM (2 years ago)
Author:
Sven Rech
Message:

Settings Sidebar: Removed unnecessary and confusing "blank" entries for hidden plugin settings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/WorkspaceManager/View/Visuals/SideBarVisual.xaml

    r4808 r8380  
    9292        </Style>
    9393
     94        <Style x:Key="SelectedItemContainerStyle" TargetType="{x:Type ListBoxItem}">
     95            <Style.Triggers>
     96                <DataTrigger Binding="{Binding IsSelected}" Value="False">
     97                    <Setter Property="Visibility" Value="Collapsed"/>
     98                </DataTrigger>
     99            </Style.Triggers>
     100        </Style>
     101
     102        <Style x:Key="ActiveItemContainerStyle" TargetType="{x:Type ListBoxItem}">
     103            <Style.Triggers>
     104                <DataTrigger Binding="{Binding IsActive}" Value="False">
     105                    <Setter Property="Visibility" Value="Collapsed"/>
     106                </DataTrigger>
     107            </Style.Triggers>
     108        </Style>
    94109
    95110        <DataTemplate x:Key="SelectedTemplate" DataType="{x:Type local:ComponentVisual}">
     
    171186                <DataTrigger Binding="{Binding Path=IsFullscreenOpen}" Value="True">
    172187                    <Setter Property="ItemTemplate" Value="{StaticResource ResourceKey=ActiveTemplate}"></Setter>
     188                    <Setter Property="ItemContainerStyle" Value="{StaticResource ActiveItemContainerStyle}" />
    173189                </DataTrigger>
    174190                <DataTrigger Binding="{Binding Path=IsFullscreenOpen}" Value="False">
    175191                    <Setter Property="ItemTemplate" Value="{StaticResource ResourceKey=SelectedTemplate}"></Setter>
     192                    <Setter Property="ItemContainerStyle" Value="{StaticResource SelectedItemContainerStyle}" />
    176193                </DataTrigger>
    177194            </Style.Triggers>
Note: See TracChangeset for help on using the changeset viewer.