优化下载中列表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>
<StackPanel Grid.Column="0" Orientation="Horizontal">
<TextBlock
HorizontalAlignment="Left"
FontSize="12"
Foreground="{DynamicResource BrushTextDark}"
Text="{Binding DownloadContent}" />
<TextBlock <TextBlock
Grid.Column="0"
HorizontalAlignment="Left" HorizontalAlignment="Left"
FontSize="12" FontSize="12"
Foreground="{DynamicResource BrushTextDark}"> Foreground="{DynamicResource BrushTextDark}">
<TextBlock.Text>
<MultiBinding StringFormat="{}{0} {1}"> <TextBlock.Style>
<Binding Path="DownloadContent" /> <Style TargetType="{x:Type TextBlock}">
<Binding Path="DownloadStatusTitle" /> <Setter Property="Text" Value="{Binding StringFormat={} {0}, Path=DownloadStatusTitle}" />
</MultiBinding> <Style.Triggers>
</TextBlock.Text> <DataTrigger Binding="{Binding DownloadContent}" Value="">
<Setter Property="Text" Value="{Binding DownloadStatusTitle}" />
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock> </TextBlock>
</StackPanel>
<TextBlock <TextBlock
Grid.Column="1" Grid.Column="1"

Loading…
Cancel
Save