feat: 本地化框架
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
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"
|
||||
@@ -21,21 +22,25 @@
|
||||
<StackPanel Spacing="8">
|
||||
<TextBlock Text="{Binding StatusText}" FontWeight="SemiBold" FontSize="13" TextWrapping="Wrap"/>
|
||||
<ProgressBar Minimum="0" Maximum="100" Value="{Binding Progress}" Height="8"/>
|
||||
<TextBlock FontSize="11" Foreground="{DynamicResource SystemBaseMediumColorBrush}">
|
||||
<Run Text="已处理: "/>
|
||||
<Run Text="{Binding ProcessedFiles}"/>
|
||||
<Run Text=" / "/>
|
||||
<Run Text="{Binding TotalFiles}"/>
|
||||
</TextBlock>
|
||||
<StackPanel Orientation="Horizontal" Spacing="12">
|
||||
<TextBlock Text="{Binding AddedFiles, StringFormat='新增: {0}'}" FontSize="11"
|
||||
<StackPanel Orientation="Horizontal" Spacing="2">
|
||||
<TextBlock Text="{l10n:Localize Processed}" FontSize="11"
|
||||
Foreground="{DynamicResource SystemBaseMediumColorBrush}"/>
|
||||
<TextBlock Text="{Binding SkippedFiles, StringFormat='跳过: {0}'}" FontSize="11"
|
||||
<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="关闭" Command="{Binding DismissCommand}"
|
||||
<Button Content="{l10n:Localize Close}" Command="{Binding DismissCommand}"
|
||||
IsVisible="{Binding HasError}" HorizontalAlignment="Right"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
Reference in New Issue
Block a user