|
92 | 92 | <Setter.Value>
|
93 | 93 | <ControlTemplate TargetType="Expander">
|
94 | 94 | <Border
|
95 |
| - Background="{TemplateBinding Background}" |
96 |
| - BorderBrush="{TemplateBinding BorderBrush}" |
97 |
| - BorderThickness="{TemplateBinding BorderThickness}" |
98 |
| - SnapsToDevicePixels="true"> |
| 95 | + Background="{TemplateBinding Background}" |
| 96 | + BorderBrush="{TemplateBinding BorderBrush}" |
| 97 | + BorderThickness="{TemplateBinding BorderThickness}" |
| 98 | + SnapsToDevicePixels="true"> |
99 | 99 | <DockPanel>
|
100 | 100 | <ToggleButton
|
101 |
| - x:Name="HeaderSite" |
102 |
| - MinWidth="0" |
103 |
| - MinHeight="0" |
104 |
| - Margin="0" |
105 |
| - Padding="{TemplateBinding Padding}" |
106 |
| - HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" |
107 |
| - VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" |
108 |
| - Content="{TemplateBinding Header}" |
109 |
| - ContentTemplate="{TemplateBinding HeaderTemplate}" |
110 |
| - ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}" |
111 |
| - DockPanel.Dock="Top" |
112 |
| - FocusVisualStyle="{StaticResource ExpanderHeaderFocusVisual}" |
113 |
| - FontFamily="{TemplateBinding FontFamily}" |
114 |
| - FontSize="{TemplateBinding FontSize}" |
115 |
| - FontStretch="{TemplateBinding FontStretch}" |
116 |
| - FontStyle="{TemplateBinding FontStyle}" |
117 |
| - FontWeight="{TemplateBinding FontWeight}" |
118 |
| - Foreground="{TemplateBinding Foreground}" |
119 |
| - IsChecked="{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
120 |
| - Style="{StaticResource ExpanderHeaderRightArrowStyle}" /> |
121 |
| - <Border x:Name="ContentPresenterBorder" BorderThickness="0,1,0,0" |
122 |
| - BorderBrush="{DynamicResource Color03B}"> |
| 101 | + x:Name="HeaderSite" |
| 102 | + MinWidth="0" |
| 103 | + MinHeight="0" |
| 104 | + Margin="0" |
| 105 | + Padding="{TemplateBinding Padding}" |
| 106 | + HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" |
| 107 | + VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" |
| 108 | + Content="{TemplateBinding Header}" |
| 109 | + ContentTemplate="{TemplateBinding HeaderTemplate}" |
| 110 | + ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}" |
| 111 | + DockPanel.Dock="Top" |
| 112 | + FocusVisualStyle="{StaticResource ExpanderHeaderFocusVisual}" |
| 113 | + FontFamily="{TemplateBinding FontFamily}" |
| 114 | + FontSize="{TemplateBinding FontSize}" |
| 115 | + FontStretch="{TemplateBinding FontStretch}" |
| 116 | + FontStyle="{TemplateBinding FontStyle}" |
| 117 | + FontWeight="{TemplateBinding FontWeight}" |
| 118 | + Foreground="{TemplateBinding Foreground}" |
| 119 | + IsChecked="{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
| 120 | + Style="{StaticResource ExpanderHeaderRightArrowStyle}" /> |
| 121 | + <Border |
| 122 | + x:Name="ContentPresenterBorder" |
| 123 | + BorderBrush="{DynamicResource Color03B}" |
| 124 | + BorderThickness="0 1 0 0"> |
123 | 125 | <ContentPresenter
|
124 |
| - x:Name="ExpandSite" |
125 |
| - Margin="{TemplateBinding Padding}" |
126 |
| - HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
127 |
| - VerticalAlignment="{TemplateBinding VerticalContentAlignment}" |
128 |
| - DockPanel.Dock="Bottom" |
129 |
| - Focusable="false" /> |
| 126 | + x:Name="ExpandSite" |
| 127 | + Margin="{TemplateBinding Padding}" |
| 128 | + HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
| 129 | + VerticalAlignment="{TemplateBinding VerticalContentAlignment}" |
| 130 | + DockPanel.Dock="Bottom" |
| 131 | + Focusable="false" /> |
130 | 132 | <Border.LayoutTransform>
|
131 | 133 | <ScaleTransform ScaleY="0" />
|
132 | 134 | </Border.LayoutTransform>
|
|
141 | 143 | <BeginStoryboard>
|
142 | 144 | <Storyboard>
|
143 | 145 | <DoubleAnimation
|
144 |
| - Storyboard.TargetName="ContentPresenterBorder" |
145 |
| - Storyboard.TargetProperty="(Border.LayoutTransform).(ScaleTransform.ScaleY)" |
146 |
| - From="0.0" To="1.0" Duration="0:0:0" /> |
| 146 | + Storyboard.TargetName="ContentPresenterBorder" |
| 147 | + Storyboard.TargetProperty="(Border.LayoutTransform).(ScaleTransform.ScaleY)" |
| 148 | + From="0.0" |
| 149 | + To="1.0" |
| 150 | + Duration="0:0:0" /> |
147 | 151 | <DoubleAnimation
|
148 |
| - Storyboard.TargetName="ContentPresenterBorder" |
149 |
| - Storyboard.TargetProperty="(Border.Opacity)" |
150 |
| - From="0.0" To="1.0" Duration="0:0:0" /> |
| 152 | + Storyboard.TargetName="ContentPresenterBorder" |
| 153 | + Storyboard.TargetProperty="(Border.Opacity)" |
| 154 | + From="0.0" |
| 155 | + To="1.0" |
| 156 | + Duration="0:0:0" /> |
151 | 157 | </Storyboard>
|
152 | 158 | </BeginStoryboard>
|
153 | 159 | </Trigger.EnterActions>
|
154 | 160 | <Trigger.ExitActions>
|
155 | 161 | <BeginStoryboard>
|
156 | 162 | <Storyboard>
|
157 | 163 | <DoubleAnimation
|
158 |
| - Storyboard.TargetName="ContentPresenterBorder" |
159 |
| - Storyboard.TargetProperty="(Border.LayoutTransform).(ScaleTransform.ScaleY)" |
160 |
| - From="1.0" To="0.0" Duration="0:0:0" /> |
| 164 | + Storyboard.TargetName="ContentPresenterBorder" |
| 165 | + Storyboard.TargetProperty="(Border.LayoutTransform).(ScaleTransform.ScaleY)" |
| 166 | + From="1.0" |
| 167 | + To="0.0" |
| 168 | + Duration="0:0:0" /> |
161 | 169 | <DoubleAnimation
|
162 |
| - Storyboard.TargetName="ContentPresenterBorder" |
163 |
| - Storyboard.TargetProperty="(Border.Opacity)" |
164 |
| - From="1.0" To="0.0" Duration="0:0:0" /> |
| 170 | + Storyboard.TargetName="ContentPresenterBorder" |
| 171 | + Storyboard.TargetProperty="(Border.Opacity)" |
| 172 | + From="1.0" |
| 173 | + To="0.0" |
| 174 | + Duration="0:0:0" /> |
165 | 175 | </Storyboard>
|
166 | 176 | </BeginStoryboard>
|
167 | 177 | </Trigger.ExitActions>
|
|
734 | 744 | BorderThickness="1"
|
735 | 745 | DragEnter="lbxAccessLinks_DragEnter"
|
736 | 746 | Drop="LbxAccessLinks_OnDrop"
|
737 |
| - ItemTemplate="{StaticResource ListViewTemplateAccessLinks}" |
738 | 747 | ItemsSource="{Binding Settings.QuickAccessLinks}"
|
739 | 748 | Loaded="lbxAccessLinks_Loaded"
|
740 |
| - SelectedItem="{Binding SelectedQuickAccessLink}" /> |
| 749 | + SelectedItem="{Binding SelectedQuickAccessLink}"> |
| 750 | + <ListView.View> |
| 751 | + <GridView> |
| 752 | + <GridViewColumn Width="600" Header="{DynamicResource plugin_explorer_name}"> |
| 753 | + <GridViewColumn.CellTemplate> |
| 754 | + <DataTemplate> |
| 755 | + <TextBlock Text="{Binding Name}" /> |
| 756 | + </DataTemplate> |
| 757 | + </GridViewColumn.CellTemplate> |
| 758 | + </GridViewColumn> |
| 759 | + <GridViewColumn Width="900" Header="{DynamicResource plugin_explorer_path}"> |
| 760 | + <GridViewColumn.CellTemplate> |
| 761 | + <DataTemplate> |
| 762 | + <TextBlock Text="{Binding Path}" TextTrimming="CharacterEllipsis" /> |
| 763 | + </DataTemplate> |
| 764 | + </GridViewColumn.CellTemplate> |
| 765 | + </GridViewColumn> |
| 766 | + </GridView> |
| 767 | + </ListView.View> |
| 768 | + </ListView> |
741 | 769 | </Border>
|
742 | 770 |
|
743 | 771 | <StackPanel
|
|
755 | 783 | <Button
|
756 | 784 | MinWidth="100"
|
757 | 785 | Margin="{StaticResource SettingPanelItemLeftMargin}"
|
758 |
| - Command="{Binding EditLinkCommand}" |
| 786 | + Command="{Binding EditQuickAccessLinkCommand}" |
759 | 787 | CommandParameter="QuickAccessLink"
|
760 | 788 | Content="{DynamicResource plugin_explorer_edit}" />
|
761 | 789 | <Button
|
762 | 790 | MinWidth="100"
|
763 | 791 | Margin="{StaticResource SettingPanelItemLeftMargin}"
|
764 |
| - Command="{Binding AddLinkCommand}" |
| 792 | + Command="{Binding AddQuickAccessLinkCommand}" |
765 | 793 | CommandParameter="QuickAccessLink"
|
766 | 794 | Content="{DynamicResource plugin_explorer_add}" />
|
767 | 795 | </StackPanel>
|
|
822 | 850 | <Button
|
823 | 851 | MinWidth="100"
|
824 | 852 | Margin="{StaticResource SettingPanelItemLeftMargin}"
|
825 |
| - Command="{Binding EditLinkCommand}" |
| 853 | + Command="{Binding EditIndexSearchExcludePathsCommand}" |
826 | 854 | CommandParameter="IndexSearchExcludedPaths"
|
827 | 855 | Content="{DynamicResource plugin_explorer_edit}" />
|
828 | 856 | <Button
|
829 | 857 | MinWidth="100"
|
830 | 858 | Margin="{StaticResource SettingPanelItemLeftMargin}"
|
831 |
| - Command="{Binding AddLinkCommand}" |
| 859 | + Command="{Binding AddIndexSearchExcludePathsCommand}" |
832 | 860 | CommandParameter="IndexSearchExcludedPaths"
|
833 | 861 | Content="{DynamicResource plugin_explorer_add}" />
|
834 | 862 | </StackPanel>
|
|
0 commit comments