|
36 | 36 |
|
37 | 37 | <TabControl Height="auto" SelectedIndex="0"> |
38 | 38 | <TabItem Header="{DynamicResource general}"> |
39 | | - <ScrollViewer ui:ScrollViewerHelper.AutoHideScrollBars="True" Margin="60,30,0,30"> |
| 39 | + <ScrollViewer ui:ScrollViewerHelper.AutoHideScrollBars="{Binding AutoHideScrollBar, Mode=OneWay}" Margin="60,30,0,30"> |
40 | 40 | <StackPanel Orientation="Vertical"> |
41 | 41 | <ui:ToggleSwitch Margin="10" IsOn="{Binding PortableMode}"> |
42 | 42 | <TextBlock Text="{DynamicResource portableMode}" /> |
|
63 | 63 | <ui:ToggleSwitch Margin="10" IsOn="{Binding AutoUpdates}"> |
64 | 64 | <TextBlock Text="{DynamicResource autoUpdates}" /> |
65 | 65 | </ui:ToggleSwitch> |
66 | | - <CheckBox Margin="10" IsChecked="{Binding ShouldUsePinyin}" ToolTip="{DynamicResource ShouldUsePinyinToolTip}"> |
| 66 | + <CheckBox Margin="10" IsChecked="{Binding ShouldUsePinyin}" |
| 67 | + ToolTip="{DynamicResource ShouldUsePinyinToolTip}"> |
67 | 68 | <TextBlock Text="{DynamicResource ShouldUsePinyin}" /> |
68 | 69 | </CheckBox> |
| 70 | + <ui:ToggleSwitch Margin="10" IsOn="{Binding AutoHideScrollBar, Mode=TwoWay}" |
| 71 | + ToolTip="{DynamicResource autoHideScrollBarToolTip}"> |
| 72 | + <TextBlock Text="{DynamicResource autoHideScrollBar}" /> |
| 73 | + </ui:ToggleSwitch> |
69 | 74 | <StackPanel Margin="10" Orientation="Horizontal"> |
70 | 75 | <TextBlock Text="{DynamicResource querySearchPrecision}" FontSize="14" /> |
71 | 76 | <ComboBox Margin="10 0 0 0" MaxWidth="200" |
|
112 | 117 | </TextBlock> |
113 | 118 | <ListBox SelectedIndex="0" SelectedItem="{Binding SelectedPlugin}" |
114 | 119 | ItemsSource="{Binding PluginViewModels}" |
115 | | - Margin="10, 0, 10, 10" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ui:ScrollViewerHelper.AutoHideScrollBars="True"> |
| 120 | + Margin="10, 0, 10, 10" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ui:ScrollViewerHelper.AutoHideScrollBars="{Binding AutoHideScrollBar, Mode=OneWay}"> |
116 | 121 | <ListBox.ItemTemplate> |
117 | 122 | <DataTemplate> |
118 | 123 | <StackPanel Orientation="Horizontal" Margin="3"> |
|
216 | 221 | <Run Text="{DynamicResource browserMoreThemes}" /> |
217 | 222 | </Hyperlink> |
218 | 223 | </TextBlock> |
219 | | - <Button DockPanel.Dock="Top" Margin="0,10,0,0" Width="180" HorizontalAlignment="Center" Click="OpenPluginFolder">Open Theme Folder</Button> |
220 | | - <ListBox DockPanel.Dock="Top" SelectedItem="{Binding SelectedTheme}" ItemsSource="{Binding Themes}" |
| 224 | + <Button DockPanel.Dock="Top" Margin="0,10,0,0" Width="180" HorizontalAlignment="Center" |
| 225 | + Click="OpenPluginFolder">Open Theme Folder</Button> |
| 226 | + <ListBox DockPanel.Dock="Top" SelectedItem="{Binding SelectedTheme}" ItemsSource="{Binding Themes}" |
| 227 | + ui:ScrollViewerHelper.AutoHideScrollBars="{Binding AutoHideScrollBar, Mode=OneWay}" |
221 | 228 | Margin="10, 0, 10, 10" Width="180" Height="394" /> |
222 | 229 |
|
223 | 230 | </DockPanel> |
|
0 commit comments