优化下载中列表UI

croire 3 years ago
parent ba1235669c
commit 3b2de59d0b

@ -103,6 +103,7 @@
<system:String x:Key="MixedFlow">混流中……</system:String> <system:String x:Key="MixedFlow">混流中……</system:String>
<system:String x:Key="Pausing">暂停中……</system:String> <system:String x:Key="Pausing">暂停中……</system:String>
<system:String x:Key="Waiting">等待中……</system:String> <system:String x:Key="Waiting">等待中……</system:String>
<system:String x:Key="DownloadFailed">下载失败</system:String>
<system:String x:Key="TotalDownloading1">正在下载</system:String> <system:String x:Key="TotalDownloading1">正在下载</system:String>
<system:String x:Key="TotalDownloading2">个视频!</system:String> <system:String x:Key="TotalDownloading2">个视频!</system:String>

@ -95,18 +95,29 @@
<ColumnDefinition /> <ColumnDefinition />
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<TextBlock <StackPanel Grid.Column="0" Orientation="Horizontal">
Grid.Column="0" <TextBlock
HorizontalAlignment="Left" HorizontalAlignment="Left"
FontSize="12" FontSize="12"
Foreground="{DynamicResource BrushTextDark}"> Foreground="{DynamicResource BrushTextDark}"
<TextBlock.Text> Text="{Binding DownloadContent}" />
<MultiBinding StringFormat="{}{0} {1}"> <TextBlock
<Binding Path="DownloadContent" /> HorizontalAlignment="Left"
<Binding Path="DownloadStatusTitle" /> FontSize="12"
</MultiBinding> Foreground="{DynamicResource BrushTextDark}">
</TextBlock.Text>
</TextBlock> <TextBlock.Style>
<Style TargetType="{x:Type TextBlock}">
<Setter Property="Text" Value="{Binding StringFormat={} {0}, Path=DownloadStatusTitle}" />
<Style.Triggers>
<DataTrigger Binding="{Binding DownloadContent}" Value="">
<Setter Property="Text" Value="{Binding DownloadStatusTitle}" />
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
</StackPanel>
<TextBlock <TextBlock
Grid.Column="1" Grid.Column="1"

Loading…
Cancel
Save