|
20 | 20 | <local:StrippedFolderPathConverter x:Key="StrippedFolderPathConverter"/> |
21 | 21 | <local:RelativeDateConverter x:Key="RelativeDateConverter"/> |
22 | 22 | <local:CompressionLevelAbbreviatedConverter x:Key="CompressionLevelAbbreviatedConverter"/> |
| 23 | + <local:ConfidenceIntToColorConverter x:Key="ConfidenceIntToColorConverter"/> |
| 24 | + <local:ConfidenceIntToStringConverter x:Key="ConfidenceIntToStringConverter"/> |
23 | 25 | </ResourceDictionary> |
24 | 26 |
|
25 | 27 | </Window.Resources> |
|
201 | 203 | <StringAnimationUsingKeyFrames Storyboard.TargetName="RightLabel" Storyboard.TargetProperty="(TextBlock.Text)" > |
202 | 204 | <DiscreteStringKeyFrame Value="estimated size" KeyTime="0:0:0" /> |
203 | 205 | </StringAnimationUsingKeyFrames> |
| 206 | + <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Confidence" Storyboard.TargetProperty="(UIElement.Visibility)"> |
| 207 | + <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Visible}"/> |
| 208 | + </ObjectAnimationUsingKeyFrames> |
204 | 209 | </Storyboard> |
205 | 210 | </VisualState> |
206 | 211 | <VisualState x:Name="AnalysingFolderSelected"> |
|
371 | 376 | <ObjectAnimationUsingKeyFrames Storyboard.TargetName="grid3" Storyboard.TargetProperty="(UIElement.Visibility)"> |
372 | 377 | <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Collapsed}"/> |
373 | 378 | </ObjectAnimationUsingKeyFrames> |
| 379 | + <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Confidence" Storyboard.TargetProperty="(UIElement.Visibility)"> |
| 380 | + <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Collapsed}"/> |
| 381 | + </ObjectAnimationUsingKeyFrames> |
374 | 382 |
|
375 | 383 | </Storyboard> |
376 | 384 | </VisualState> |
|
444 | 452 | <StringAnimationUsingKeyFrames Storyboard.TargetName="RightLabel" Storyboard.TargetProperty="(TextBlock.Text)" > |
445 | 453 | <DiscreteStringKeyFrame Value="after" KeyTime="0:0:0" /> |
446 | 454 | </StringAnimationUsingKeyFrames> |
| 455 | + <ObjectAnimationUsingKeyFrames Storyboard.TargetName="Confidence" Storyboard.TargetProperty="(UIElement.Visibility)"> |
| 456 | + <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Collapsed}"/> |
| 457 | + </ObjectAnimationUsingKeyFrames> |
447 | 458 |
|
448 | 459 | </Storyboard> |
449 | 460 | </VisualState> |
|
687 | 698 | </Style.Triggers> |
688 | 699 | </Style> |
689 | 700 | </Border.Style> |
690 | | - <Grid > |
| 701 | + <Grid> |
691 | 702 | <Grid.ColumnDefinitions> |
692 | 703 | <ColumnDefinition Width="60"/> |
693 | 704 | <ColumnDefinition Width="*"/> |
694 | 705 | <ColumnDefinition Width="40"/> |
695 | 706 | <ColumnDefinition Width="*"/> |
696 | 707 | <ColumnDefinition Width="60"/> |
697 | 708 | </Grid.ColumnDefinitions> |
| 709 | + <Grid.RowDefinitions> |
| 710 | + <RowDefinition Height="*"/> |
| 711 | + <RowDefinition Height="30"/> |
| 712 | + </Grid.RowDefinitions> |
698 | 713 |
|
699 | 714 | <StackPanel Orientation="Vertical" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center"> |
700 | 715 | <TextBlock Text="{Binding ActiveFolder.UncompressedBytes, Converter={StaticResource BytesToReadableConverter}}" d:Text="21.7 GB" FontFamily="Segoe UI Semibold" FontSize="31" Foreground="White" HorizontalAlignment="Center"/> |
|
704 | 719 | <StackPanel Orientation="Vertical" Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Center"> |
705 | 720 | <TextBlock Text="{Binding ActiveFolder.CompressedBytes, Converter={StaticResource BytesToReadableConverter}}" d:Text="29.7 GB" FontFamily="Segoe UI Semibold" FontSize="31" Foreground="White" HorizontalAlignment="Center"/> |
706 | 721 | <TextBlock x:Name="RightLabel" Text="estimated size" FontFamily="Segoe UI Semibold" FontSize="17" Foreground="#BAC2CA" HorizontalAlignment="Center"/> |
| 722 | + |
707 | 723 | </StackPanel> |
708 | | - |
| 724 | + <Grid Margin="0,3,0,0" x:Name="Confidence" Grid.Column="3" Grid.Row="1" Grid.ColumnSpan="1" HorizontalAlignment="Center" Width="110"> |
| 725 | + <TextBlock HorizontalAlignment="Left" Text="confidence" FontFamily="Segoe UI " FontSize="13" Foreground="#50BAC2CA" /> |
| 726 | + <TextBlock HorizontalAlignment="Right" Text="{Binding ActiveFolder.CompressionConfidence, Converter={StaticResource ConfidenceIntToStringConverter}}" FontFamily="Segoe UI SemiBold" FontSize="13" Foreground="{Binding ActiveFolder.CompressionConfidence, Converter={StaticResource ConfidenceIntToColorConverter}}" /> |
| 727 | + <Grid.ToolTip> |
| 728 | + <ToolTip> |
| 729 | + <!-- Your tooltip content goes here --> |
| 730 | + <TextBlock Text="Confidence of the estimated size, determined by number of submitted user results" /> |
| 731 | + </ToolTip> |
| 732 | + </Grid.ToolTip> |
| 733 | + </Grid> |
| 734 | + |
709 | 735 | </Grid> |
710 | 736 | </Border> |
711 | 737 |
|
|
0 commit comments