|
238 | 238 | TextAlignment="Center" |
239 | 239 | TextWrapping="Wrap" |
240 | 240 | Visibility="Collapsed" /> |
| 241 | + |
| 242 | + <!-- Drive Details --> |
| 243 | + <TextBlock |
| 244 | + x:Name="DriveFormatAndTypeTextBlock" |
| 245 | + Margin="12,12,12,24" |
| 246 | + HorizontalAlignment="Center" |
| 247 | + IsTextSelectionEnabled="True" |
| 248 | + Style="{ThemeResource BodyTextBlockStyle}" |
| 249 | + TextAlignment="Center" |
| 250 | + TextWrapping="Wrap" |
| 251 | + Visibility="Collapsed"> |
| 252 | + <Run Text="{x:Bind ViewModel.SelectedDriveItem.Filesystem, Mode=OneWay}" /> |
| 253 | + <Run Foreground="{ThemeResource TextFillColorTertiaryBrush}" Text="{x:Bind ViewModel.SelectedDriveItem.TypeText, Mode=OneWay}" /> |
| 254 | + </TextBlock> |
| 255 | + |
| 256 | + <TextBlock |
| 257 | + x:Name="UsedSpaceTextBlock" |
| 258 | + HorizontalAlignment="Center" |
| 259 | + Foreground="{ThemeResource SystemAccentColor}" |
| 260 | + IsTextSelectionEnabled="True" |
| 261 | + Style="{ThemeResource SubtitleTextBlockStyle}" |
| 262 | + Text="{x:Bind ViewModel.SelectedDriveItem.UsedSpaceText, Mode=OneWay}" |
| 263 | + TextAlignment="Center" |
| 264 | + TextWrapping="Wrap" |
| 265 | + Visibility="Collapsed" /> |
| 266 | + <controls:StorageBar |
| 267 | + x:Name="DriveSpaceProgressBar" |
| 268 | + Margin="8,8,8,8" |
| 269 | + HorizontalAlignment="Stretch" |
| 270 | + TrackBarHeight="4" |
| 271 | + ValueBarHeight="8" |
| 272 | + Visibility="Collapsed" |
| 273 | + Value="{x:Bind ViewModel.SelectedDriveItem.PercentageUsed, Mode=OneWay}" /> |
| 274 | + <Grid |
| 275 | + x:Name="DriveSpaceGrid" |
| 276 | + Margin="12,0,12,24" |
| 277 | + Visibility="Collapsed"> |
| 278 | + <Grid.RowDefinitions> |
| 279 | + <RowDefinition /> |
| 280 | + <RowDefinition /> |
| 281 | + </Grid.RowDefinitions> |
| 282 | + |
| 283 | + <Grid.ColumnDefinitions> |
| 284 | + <ColumnDefinition Width="Auto" /> |
| 285 | + <ColumnDefinition /> |
| 286 | + <ColumnDefinition Width="Auto" /> |
| 287 | + </Grid.ColumnDefinitions> |
| 288 | + |
| 289 | + <TextBlock |
| 290 | + x:Name="AvailableSpaceTextBlock" |
| 291 | + FontFamily="{ThemeResource ContentControlThemeFontFamily}" |
| 292 | + FontSize="14" |
| 293 | + IsTextSelectionEnabled="True" |
| 294 | + Style="{ThemeResource BodyStrongTextBlockStyle}" |
| 295 | + Text="{x:Bind ViewModel.SelectedDriveItem.FreeSpaceText, Mode=OneWay}" |
| 296 | + TextAlignment="Left" |
| 297 | + TextWrapping="Wrap" /> |
| 298 | + <TextBlock |
| 299 | + x:Name="TotalDriveSpaceTextBlock" |
| 300 | + Grid.Column="2" |
| 301 | + Foreground="{ThemeResource TextFillColorTertiaryBrush}" |
| 302 | + IsTextSelectionEnabled="True" |
| 303 | + Style="{ThemeResource BodyStrongTextBlockStyle}" |
| 304 | + Text="{x:Bind ViewModel.SelectedDriveItem.MaxSpaceText, Mode=OneWay}" |
| 305 | + TextAlignment="Right" |
| 306 | + TextWrapping="Wrap" /> |
| 307 | + <TextBlock |
| 308 | + x:Name="AvailableSpaceLabel" |
| 309 | + Grid.Row="1" |
| 310 | + HorizontalAlignment="Left" |
| 311 | + Style="{ThemeResource BodyTextBlockStyle}" |
| 312 | + Text="{helpers:ResourceString Name=Available}" |
| 313 | + TextAlignment="Left" |
| 314 | + TextWrapping="Wrap" /> |
| 315 | + <TextBlock |
| 316 | + x:Name="TotalDriveSpaceLabel" |
| 317 | + Grid.Row="1" |
| 318 | + Grid.Column="2" |
| 319 | + HorizontalAlignment="Right" |
| 320 | + Foreground="{ThemeResource TextFillColorTertiaryBrush}" |
| 321 | + Style="{ThemeResource BodyTextBlockStyle}" |
| 322 | + Text="{helpers:ResourceString Name=Total}" |
| 323 | + TextAlignment="Right" |
| 324 | + TextWrapping="Wrap" /> |
| 325 | + </Grid> |
| 326 | + |
241 | 327 | <ItemsControl |
242 | 328 | x:Name="FileDetailsRepeater" |
243 | 329 | Margin="12,12,12,0" |
|
467 | 553 | <Setter Target="PreviewLoadingIndicator.Visibility" Value="Visible" /> |
468 | 554 | </VisualState.Setters> |
469 | 555 | </VisualState> |
| 556 | + <VisualState x:Name="DriveStorageDetailsAvailable"> |
| 557 | + <VisualState.StateTriggers> |
| 558 | + <triggers:IsEqualStateTrigger Value="{x:Bind ViewModel.PreviewPaneState, Mode=OneWay}" To="5" /> |
| 559 | + </VisualState.StateTriggers> |
| 560 | + <VisualState.Setters> |
| 561 | + <Setter Target="PreviewErrorText.Visibility" Value="Collapsed" /> |
| 562 | + <Setter Target="FileDetailsRepeater.Visibility" Value="Collapsed" /> |
| 563 | + <Setter Target="DetailsTagsList.Visibility" Value="Collapsed" /> |
| 564 | + <Setter Target="DetailsOpenProperties.Visibility" Value="Visible" /> |
| 565 | + <Setter Target="PreviewControlPresenter.Visibility" Value="Visible" /> |
| 566 | + <Setter Target="DetailsListHeader.Visibility" Value="Visible" /> |
| 567 | + <Setter Target="DriveFormatAndTypeTextBlock.Visibility" Value="Visible" /> |
| 568 | + <Setter Target="UsedSpaceTextBlock.Visibility" Value="Visible" /> |
| 569 | + <Setter Target="DriveSpaceProgressBar.Visibility" Value="Visible" /> |
| 570 | + <Setter Target="DriveSpaceGrid.Visibility" Value="Visible" /> |
| 571 | + </VisualState.Setters> |
| 572 | + </VisualState> |
470 | 573 | </VisualStateGroup> |
471 | 574 | <VisualStateGroup> |
472 | 575 | <VisualState> |
|
0 commit comments