|
120 | 120 | <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=ShowSystemTrayIcon}" IsOn="{x:Bind ViewModel.ShowSystemTrayIcon, Mode=TwoWay}" /> |
121 | 121 | </wctcontrols:SettingsCard> |
122 | 122 |
|
123 | | - <!-- Thumbnail Cache --> |
124 | | - <TextBlock |
125 | | - Padding="0,16,0,4" |
126 | | - FontSize="16" |
127 | | - FontWeight="Medium" |
128 | | - Text="{helpers:ResourceString Name=ThumbnailCache}" /> |
129 | | - |
130 | | - <!-- Enable Thumbnail Cache --> |
131 | | - <wctcontrols:SettingsExpander Header="{helpers:ResourceString Name=EnableThumbnailCache}" IsExpanded="False"> |
132 | | - <wctcontrols:SettingsExpander.Description> |
133 | | - <TextBlock Text="{helpers:ResourceString Name=EnableThumbnailCacheDescription}" TextWrapping="WrapWholeWords" /> |
134 | | - </wctcontrols:SettingsExpander.Description> |
135 | | - <wctcontrols:SettingsExpander.HeaderIcon> |
136 | | - <FontIcon Glyph="" /> |
137 | | - </wctcontrols:SettingsExpander.HeaderIcon> |
138 | | - <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=EnableThumbnailCache}" IsOn="{x:Bind ViewModel.EnableThumbnailCache, Mode=TwoWay}" /> |
139 | | - <wctcontrols:SettingsExpander.Items> |
140 | | - |
141 | | - <!-- Cache Size Limit --> |
142 | | - <wctcontrols:SettingsCard |
143 | | - Header="{helpers:ResourceString Name=CacheSizeLimitMB}" |
144 | | - IsEnabled="{x:Bind ViewModel.EnableThumbnailCache, Mode=OneWay}"> |
145 | | - <wctcontrols:SettingsCard.Description> |
146 | | - <TextBlock Text="{helpers:ResourceString Name=CacheSizeLimitDescription}" TextWrapping="WrapWholeWords" /> |
147 | | - </wctcontrols:SettingsCard.Description> |
148 | | - <NumberBox |
149 | | - AutomationProperties.Name="{helpers:ResourceString Name=CacheSizeLimit}" |
150 | | - Maximum="5000" |
151 | | - Minimum="100" |
152 | | - SpinButtonPlacementMode="Compact" |
153 | | - Value="{x:Bind ViewModel.ThumbnailCacheSizeLimit, Mode=TwoWay}" /> |
154 | | - </wctcontrols:SettingsCard> |
155 | | - <wctcontrols:SettingsCard |
156 | | - Header="{helpers:ResourceString Name=ClearCachedThumbnails}" |
157 | | - IsEnabled="{x:Bind ViewModel.EnableThumbnailCache, Mode=OneWay}"> |
158 | | - <wctcontrols:SettingsCard.Description> |
159 | | - <TextBlock> |
160 | | - <Run Text="{helpers:ResourceString Name=CurrentCacheSize}" /> |
161 | | - <Run FontWeight="SemiBold" Text="{x:Bind ViewModel.CacheSizeText, Mode=OneWay}" /> |
162 | | - </TextBlock> |
163 | | - </wctcontrols:SettingsCard.Description> |
164 | | - <Button |
165 | | - Command="{x:Bind ViewModel.ClearThumbnailCacheCommand}" |
166 | | - Content="{helpers:ResourceString Name=ClearCache}" |
167 | | - IsEnabled="{x:Bind ViewModel.IsClearCacheButtonEnabled, Mode=OneWay}" /> |
168 | | - </wctcontrols:SettingsCard> |
169 | | - </wctcontrols:SettingsExpander.Items> |
170 | | - </wctcontrols:SettingsExpander> |
171 | | - |
172 | 123 | <!-- Experimental Settings --> |
173 | 124 | <TextBlock |
174 | 125 | Padding="0,16,0,4" |
|
210 | 161 | </ToggleSwitch> |
211 | 162 | </wctcontrols:SettingsCard> |
212 | 163 |
|
| 164 | + <!-- Thumbnail Caching --> |
| 165 | + <wctcontrols:SettingsExpander Header="{helpers:ResourceString Name=CacheThumbnails}" IsExpanded="False"> |
| 166 | + <wctcontrols:SettingsExpander.HeaderIcon> |
| 167 | + <FontIcon Glyph="" /> |
| 168 | + </wctcontrols:SettingsExpander.HeaderIcon> |
| 169 | + <ToggleSwitch AutomationProperties.Name="{helpers:ResourceString Name=CacheThumbnails}" IsOn="{x:Bind ViewModel.EnableThumbnailCache, Mode=TwoWay}" /> |
| 170 | + <wctcontrols:SettingsExpander.Items> |
| 171 | + |
| 172 | + <!-- Cache Size Limit --> |
| 173 | + <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=CacheSizeLimitMB}" IsEnabled="{x:Bind ViewModel.EnableThumbnailCache, Mode=OneWay}"> |
| 174 | + <wctcontrols:SettingsCard.Description> |
| 175 | + <TextBlock Text="{helpers:ResourceString Name=CacheSizeLimitDescription}" TextWrapping="WrapWholeWords" /> |
| 176 | + </wctcontrols:SettingsCard.Description> |
| 177 | + <NumberBox |
| 178 | + AutomationProperties.Name="{helpers:ResourceString Name=CacheSizeLimit}" |
| 179 | + Maximum="5000" |
| 180 | + Minimum="100" |
| 181 | + SpinButtonPlacementMode="Inline" |
| 182 | + Value="{x:Bind ViewModel.ThumbnailCacheSizeLimit, Mode=TwoWay}" /> |
| 183 | + </wctcontrols:SettingsCard> |
| 184 | + <wctcontrols:SettingsCard Header="{helpers:ResourceString Name=ClearCachedThumbnails}" IsEnabled="{x:Bind ViewModel.EnableThumbnailCache, Mode=OneWay}"> |
| 185 | + <wctcontrols:SettingsCard.Description> |
| 186 | + <TextBlock> |
| 187 | + <Run Text="{helpers:ResourceString Name=CurrentCacheSize}" /> |
| 188 | + <Run FontWeight="SemiBold" Text="{x:Bind ViewModel.CacheSizeText, Mode=OneWay}" /> |
| 189 | + </TextBlock> |
| 190 | + </wctcontrols:SettingsCard.Description> |
| 191 | + <Button |
| 192 | + Command="{x:Bind ViewModel.ClearThumbnailCacheCommand}" |
| 193 | + Content="{helpers:ResourceString Name=ClearCache}" |
| 194 | + IsEnabled="{x:Bind ViewModel.IsClearCacheButtonEnabled, Mode=OneWay}" /> |
| 195 | + </wctcontrols:SettingsCard> |
| 196 | + </wctcontrols:SettingsExpander.Items> |
| 197 | + </wctcontrols:SettingsExpander> |
| 198 | + |
213 | 199 | <!-- Flatten options --> |
214 | 200 | <wctcontrols:SettingsCard Description="{helpers:ResourceString Name=ShowFlattenOptionsDescription}" Header="{helpers:ResourceString Name=ShowFlattenOptions}"> |
215 | 201 | <wctcontrols:SettingsCard.HeaderIcon> |
|
0 commit comments