117 lines
7.1 KiB
XML
117 lines
7.1 KiB
XML
<UserControl x:Class="Hopetry.View.Send.DownControl"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:h="https://github.com/HeBianGu"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
d:DesignHeight="450"
|
|
d:DesignWidth="800"
|
|
mc:Ignorable="d">
|
|
|
|
<Grid DataContext="{StaticResource S.ViewModelLocator.Locator}">
|
|
<DockPanel Margin="0,0,10,0">
|
|
<h:Row DockPanel.Dock="Top" Style="{DynamicResource {x:Static h:Row.Column10Key}}">
|
|
<Button Grid.Column="0"
|
|
Margin="10,0"
|
|
Content="全部暂停"
|
|
Style="{DynamicResource {x:Static h:ButtonKeys.BorderBrushTransparent}}" />
|
|
<Button Grid.Column="1" Content="全部取消"
|
|
Style="{DynamicResource {x:Static h:ButtonKeys.BorderBrushTransparent}}" />
|
|
</h:Row>
|
|
<TabControl Padding="1 " HorizontalContentAlignment="Left">
|
|
<TabItem Header="全部" Style="{DynamicResource {x:Static h:TabItemKeys.Accent}}" />
|
|
<TabItem Header="下载中" />
|
|
<TabItem Header="已完成">
|
|
<ListBox h:Cattach.ItemHeight="Auto" ItemsSource="{Binding DownViewModel.DownItems}"
|
|
Style="{DynamicResource {x:Static h:ListBoxKeys.Single}}">
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<Grid Height="50" Margin="10">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="30" />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock Grid.RowSpan="2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="30"
|
|
Style="{DynamicResource {x:Static h:TextBlockKeys.Icon}}"
|
|
Text="" />
|
|
|
|
<TextBlock Grid.RowSpan="2"
|
|
Grid.Column="1"
|
|
HorizontalAlignment="Left"
|
|
Style="{DynamicResource {x:Static h:TextBlockKeys.Default}}"
|
|
Text="{Binding FileName}" />
|
|
|
|
<TextBlock Grid.Row="0"
|
|
Grid.Column="2"
|
|
HorizontalAlignment="Right"
|
|
Style="{DynamicResource {x:Static h:TextBlockKeys.Default}}"
|
|
Text="10:10:10" />
|
|
|
|
<TextBlock Grid.Row="0"
|
|
Grid.Column="3"
|
|
Style="{DynamicResource {x:Static h:TextBlockKeys.Default}}"
|
|
Text="{Binding FileName}" />
|
|
|
|
<h:FProgressBar Grid.Column="3"
|
|
Height="15"
|
|
CornerRadius="2"
|
|
Maximum="100"
|
|
Value="{Binding ProgressInt}">
|
|
<h:FProgressBar.Triggers>
|
|
<EventTrigger RoutedEvent="Loaded">
|
|
<BeginStoryboard>
|
|
<Storyboard
|
|
Timeline.DesiredFrameRate="{x:Static h:StoryboardSetting.DesiredFrameRate}">
|
|
<DoubleAnimation Storyboard.TargetProperty="Value"
|
|
From="0"
|
|
To="{Binding RelativeSource={RelativeSource Mode=Self}, Path=Value}"
|
|
Duration="00:00:30" />
|
|
</Storyboard>
|
|
</BeginStoryboard>
|
|
</EventTrigger>
|
|
</h:FProgressBar.Triggers>
|
|
</h:FProgressBar>
|
|
|
|
<TextBlock Grid.Row="1"
|
|
Grid.Column="3"
|
|
Margin="-3,0"
|
|
HorizontalAlignment="Left"
|
|
Style="{DynamicResource {x:Static h:TextBlockKeys.Default}}"
|
|
Text="{Binding FileName}" />
|
|
|
|
<!--操作-->
|
|
<StackPanel Grid.RowSpan="2"
|
|
Grid.Column="4"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<Button h:Cattach.Icon="" />
|
|
<Button h:Cattach.Icon="" h:Cattach.IconSize="13" />
|
|
<Button h:Cattach.Icon="" h:Cattach.IconSize="15" />
|
|
</StackPanel>
|
|
|
|
<Border Grid.RowSpan="11"
|
|
Grid.ColumnSpan="11"
|
|
Margin="0,0,0,-8"
|
|
BorderBrush="{DynamicResource {x:Static h:BrushKeys.BorderBrushDefault}}"
|
|
BorderThickness="0,0,0,1" />
|
|
</Grid>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
</TabItem>
|
|
</TabControl>
|
|
</DockPanel>
|
|
</Grid>
|
|
</UserControl> |