|
2 | 2 | x:Class="Files.SettingsPages.Experimental" |
3 | 3 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
4 | 4 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 5 | + xmlns:controls="using:Microsoft.UI.Xaml.Controls" |
| 6 | + xmlns:converters="using:Files.Converters" |
5 | 7 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
6 | 8 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
7 | 9 | xmlns:settingsviewmodels="using:Files.ViewModels.SettingsViewModels" |
8 | | - xmlns:controls="using:Microsoft.UI.Xaml.Controls" |
9 | | - xmlns:converters="using:Files.Converters" |
10 | 10 | Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" |
11 | 11 | mc:Ignorable="d"> |
12 | 12 | <Page.DataContext> |
|
52 | 52 | x:Uid="SettingsUsePreemptiveCache" |
53 | 53 | Header="Use preemptive cache (preload entries in child directories on navigation)" |
54 | 54 | HeaderTemplate="{StaticResource CustomHeaderStyle}" |
55 | | - IsOn="{Binding UsePreemptiveCache, Mode=TwoWay}" |
56 | | - IsEnabled="{Binding UseFileListCache, Mode=OneWay}"/> |
| 55 | + IsEnabled="{Binding UseFileListCache, Mode=OneWay}" |
| 56 | + IsOn="{Binding UsePreemptiveCache, Mode=TwoWay}" /> |
57 | 57 |
|
58 | 58 | <controls:NumberBox |
59 | 59 | x:Uid="PreemptiveCacheParallelLimits" |
60 | 60 | HorizontalAlignment="Left" |
61 | 61 | Header="Preemptive cache parallel limit (smaller numbers should work better for hard drives)" |
62 | | - SpinButtonPlacementMode="Inline" |
63 | | - Width="450" |
64 | | - Value="{Binding PreemptiveCacheParallelLimit, Mode=TwoWay}" |
65 | | - Minimum="1" |
66 | 62 | HeaderTemplate="{StaticResource CustomHeaderStyle}" |
67 | | - IsEnabled="{x:Bind converters:MultiBooleanConverter.AndConvert(viewModel.UseFileListCache, viewModel.UsePreemptiveCache), Mode=OneWay}"/> |
| 63 | + IsEnabled="{x:Bind converters:MultiBooleanConverter.AndConvert(viewModel.UseFileListCache, viewModel.UsePreemptiveCache), Mode=OneWay}" |
| 64 | + Minimum="1" |
| 65 | + SpinButtonPlacementMode="Inline" |
| 66 | + Value="{Binding PreemptiveCacheParallelLimit, Mode=TwoWay}" /> |
68 | 67 |
|
69 | 68 | <ToggleSwitch |
70 | 69 | x:Uid="SettingsShowMultiselectOption" |
|
0 commit comments