48 lines
2.7 KiB
XML
48 lines
2.7 KiB
XML
<UserControl xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:vm="using:GUI.ViewModels"
|
|
xmlns:converters="using:GUI.Converters"
|
|
xmlns:l10n="using:GUI.Converters"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
mc:Ignorable="d"
|
|
x:Class="GUI.Views.ScanProgressView"
|
|
x:DataType="vm:ScanProgressViewModel">
|
|
<Design.DataContext>
|
|
<vm:ScanProgressViewModel/>
|
|
</Design.DataContext>
|
|
|
|
<UserControl.Resources>
|
|
<converters:HalfDoubleConverter x:Key="HalfDouble"/>
|
|
<converters:MiddleTruncateConverter x:Key="MiddleTruncate"/>
|
|
</UserControl.Resources>
|
|
|
|
<Border Padding="16" Background="{DynamicResource SystemBaseLowColorBrush}" CornerRadius="8"
|
|
Width="{Binding $parent[Window].Width, Converter={StaticResource HalfDouble}}">
|
|
<StackPanel Spacing="8">
|
|
<TextBlock Text="{Binding StatusText}" FontWeight="SemiBold" FontSize="13" TextWrapping="Wrap"/>
|
|
<ProgressBar Minimum="0" Maximum="100" Value="{Binding Progress}" Height="8"/>
|
|
<StackPanel Orientation="Horizontal" Spacing="2">
|
|
<TextBlock Text="{l10n:Localize Processed}" FontSize="11"
|
|
Foreground="{DynamicResource SystemBaseMediumColorBrush}"/>
|
|
<TextBlock Text="{Binding ProcessedFiles}" FontSize="11"
|
|
Foreground="{DynamicResource SystemBaseMediumColorBrush}"/>
|
|
<TextBlock Text=" / " FontSize="11"
|
|
Foreground="{DynamicResource SystemBaseMediumColorBrush}"/>
|
|
<TextBlock Text="{Binding TotalFiles}" FontSize="11"
|
|
Foreground="{DynamicResource SystemBaseMediumColorBrush}"/>
|
|
</StackPanel>
|
|
<StackPanel Orientation="Horizontal" Spacing="12">
|
|
<TextBlock Text="{Binding AddedText}" FontSize="11"
|
|
Foreground="{DynamicResource SystemBaseMediumColorBrush}"/>
|
|
<TextBlock Text="{Binding SkippedText}" FontSize="11"
|
|
Foreground="{DynamicResource SystemBaseMediumColorBrush}"/>
|
|
</StackPanel>
|
|
<TextBlock Text="{Binding CurrentFile, Converter={StaticResource MiddleTruncate}, ConverterParameter=60}"
|
|
FontSize="11"/>
|
|
<Button Content="{l10n:Localize Close}" Command="{Binding DismissCommand}"
|
|
IsVisible="{Binding HasError}" HorizontalAlignment="Right"/>
|
|
</StackPanel>
|
|
</Border>
|
|
</UserControl>
|