|
2 | 2 | x:Class="Files.Views.PropertiesGeneral"
|
3 | 3 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
4 | 4 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
| 5 | + xmlns:converters="using:Microsoft.Toolkit.Uwp.UI.Converters" |
5 | 6 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
6 | 7 | xmlns:local="using:Files.ViewModels.Properties"
|
7 | 8 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
8 | 9 | xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
|
9 |
| - xmlns:toolkit="using:Microsoft.Toolkit.Uwp.UI.Controls" |
10 | 10 | xmlns:usercontrols="using:Files.UserControls"
|
11 | 11 | Loaded="Properties_Loaded"
|
12 | 12 | mc:Ignorable="d">
|
|
341 | 341 | Height="70"
|
342 | 342 | Margin="10"
|
343 | 343 | IsIndeterminate="False"
|
344 |
| - Maximum="{x:Bind ViewModel.DriveCapacityDoubleValue, Mode=OneWay}" |
345 | 344 | Visibility="{x:Bind ViewModel.DriveCapacityVisibiity, Mode=OneWay}"
|
346 |
| - Value="{x:Bind ViewModel.DriveUsedSpaceDoubleValue, Mode=OneWay}" /> |
| 345 | + Value="{x:Bind ViewModel.DrivePercentageValue, Mode=OneWay}"> |
| 346 | + |
| 347 | + <muxc:ProgressRing.Template> |
| 348 | + <ControlTemplate TargetType="muxc:ProgressRing"> |
| 349 | + <Grid x:Name="LayoutRoot" Background="Transparent"> |
| 350 | + <Grid.Resources> |
| 351 | + <converters:StringFormatConverter x:Key="StringFormatConverter" /> |
| 352 | + </Grid.Resources> |
| 353 | + <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center"> |
| 354 | + <TextBlock |
| 355 | + Margin="0" |
| 356 | + FontWeight="SemiBold" |
| 357 | + Text="{Binding Value, RelativeSource={RelativeSource Mode=TemplatedParent}, Converter={StaticResource StringFormatConverter}, ConverterParameter='{}{0:0}%', Mode=OneWay}" |
| 358 | + TextAlignment="Center" /> |
| 359 | + </StackPanel> |
| 360 | + |
| 361 | + <!-- AnimatedVisualPlayer for Lottie --> |
| 362 | + <muxc:AnimatedVisualPlayer |
| 363 | + x:Name="LottiePlayer" |
| 364 | + AutoPlay="false" |
| 365 | + Opacity="1" |
| 366 | + Stretch="fill" /> |
| 367 | + |
| 368 | + <VisualStateManager.VisualStateGroups> |
| 369 | + <VisualStateGroup x:Name="CommonStates"> |
| 370 | + <VisualState x:Name="Inactive"> |
| 371 | + <VisualState.Setters> |
| 372 | + <Setter Target="LayoutRoot.Opacity" Value="0" /> |
| 373 | + </VisualState.Setters> |
| 374 | + </VisualState> |
| 375 | + <VisualState x:Name="DeterminateActive" /> |
| 376 | + <VisualState x:Name="Active" /> |
| 377 | + </VisualStateGroup> |
| 378 | + </VisualStateManager.VisualStateGroups> |
| 379 | + </Grid> |
| 380 | + </ControlTemplate> |
| 381 | + </muxc:ProgressRing.Template> |
| 382 | + </muxc:ProgressRing> |
347 | 383 |
|
348 | 384 | <TextBlock
|
349 | 385 | x:Uid="PropertiesAttributes"
|
|
0 commit comments