|
|
@ -2,10 +2,13 @@
|
|
|
|
x:Class="DownKyi.Views.DownloadManager.ViewDownloading"
|
|
|
|
x:Class="DownKyi.Views.DownloadManager.ViewDownloading"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
|
|
|
|
xmlns:converter="clr-namespace:DownKyi.Converter"
|
|
|
|
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
|
|
|
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
|
|
|
xmlns:prism="http://prismlibrary.com/"
|
|
|
|
xmlns:prism="http://prismlibrary.com/"
|
|
|
|
prism:ViewModelLocator.AutoWireViewModel="True">
|
|
|
|
prism:ViewModelLocator.AutoWireViewModel="True">
|
|
|
|
<UserControl.Resources>
|
|
|
|
<UserControl.Resources>
|
|
|
|
|
|
|
|
<converter:CountConverter x:Key="CountConverter" Count="0" />
|
|
|
|
|
|
|
|
|
|
|
|
<Style x:Key="DownloadingStyle" TargetType="{x:Type ListBoxItem}">
|
|
|
|
<Style x:Key="DownloadingStyle" TargetType="{x:Type ListBoxItem}">
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<Setter.Value>
|
|
|
@ -225,6 +228,21 @@
|
|
|
|
<RowDefinition Height="1" />
|
|
|
|
<RowDefinition Height="1" />
|
|
|
|
<RowDefinition Height="50" />
|
|
|
|
<RowDefinition Height="50" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
<Grid.Style>
|
|
|
|
|
|
|
|
<Style TargetType="{x:Type Grid}">
|
|
|
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
|
|
|
<DataTrigger Binding="{Binding DownloadingList}" Value="{x:Null}">
|
|
|
|
|
|
|
|
<Setter Property="Visibility" Value="Collapsed" />
|
|
|
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
|
|
|
<DataTrigger Binding="{Binding DownloadingList.Count}" Value="0">
|
|
|
|
|
|
|
|
<Setter Property="Visibility" Value="Collapsed" />
|
|
|
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
|
|
|
<DataTrigger Binding="{Binding DownloadingList.Count, Converter={StaticResource CountConverter}}" Value="true">
|
|
|
|
|
|
|
|
<Setter Property="Visibility" Value="Visible" />
|
|
|
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
</Grid.Style>
|
|
|
|
|
|
|
|
|
|
|
|
<ListBox
|
|
|
|
<ListBox
|
|
|
|
Grid.Row="0"
|
|
|
|
Grid.Row="0"
|
|
|
@ -316,5 +334,25 @@
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- TODO 没有数据时显示图片或文字 -->
|
|
|
|
<!-- TODO 没有数据时显示图片或文字 -->
|
|
|
|
|
|
|
|
<Image
|
|
|
|
|
|
|
|
Width="256"
|
|
|
|
|
|
|
|
Height="256"
|
|
|
|
|
|
|
|
Source="/DownKyi;component/Resources/nodata02.png">
|
|
|
|
|
|
|
|
<Image.Style>
|
|
|
|
|
|
|
|
<Style TargetType="{x:Type Image}">
|
|
|
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
|
|
|
<DataTrigger Binding="{Binding DownloadingList}" Value="{x:Null}">
|
|
|
|
|
|
|
|
<Setter Property="Visibility" Value="Visible" />
|
|
|
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
|
|
|
<DataTrigger Binding="{Binding DownloadingList.Count}" Value="0">
|
|
|
|
|
|
|
|
<Setter Property="Visibility" Value="Visible" />
|
|
|
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
|
|
|
<DataTrigger Binding="{Binding DownloadingList.Count, Converter={StaticResource CountConverter}}" Value="true">
|
|
|
|
|
|
|
|
<Setter Property="Visibility" Value="Collapsed" />
|
|
|
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
</Image.Style>
|
|
|
|
|
|
|
|
</Image>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</UserControl>
|
|
|
|
</UserControl>
|
|
|
|