优化下载中列表UI

croire 3 years ago
parent ba1235669c
commit 3b2de59d0b

@ -103,6 +103,7 @@
<system:String x:Key="MixedFlow">混流中……</system:String>
<system:String x:Key="Pausing">暂停中……</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="TotalDownloading2">个视频!</system:String>

@ -95,18 +95,29 @@
<ColumnDefinition />
</Grid.ColumnDefinitions>
<TextBlock
Grid.Column="0"
HorizontalAlignment="Left"
FontSize="12"
Foreground="{DynamicResource BrushTextDark}">
<TextBlock.Text>
<MultiBinding StringFormat="{}{0} {1}">
<Binding Path="DownloadContent" />
<Binding Path="DownloadStatusTitle" />
</MultiBinding>
</TextBlock.Text>
</TextBlock>
<StackPanel Grid.Column="0" Orientation="Horizontal">
<TextBlock
HorizontalAlignment="Left"
FontSize="12"
Foreground="{DynamicResource BrushTextDark}"
Text="{Binding DownloadContent}" />
<TextBlock
HorizontalAlignment="Left"
FontSize="12"
Foreground="{DynamicResource BrushTextDark}">
<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
Grid.Column="1"

Loading…
Cancel
Save