Add download worker and download service
This commit is contained in:
@@ -17,10 +17,32 @@
|
||||
mc:Ignorable="d">
|
||||
|
||||
<Grid>
|
||||
<ItemsControl>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<ui:TextBlock
|
||||
Grid.Column="0"
|
||||
Appearance="Primary"
|
||||
FontSize="20"
|
||||
Text="Downloading" />
|
||||
|
||||
<Grid Grid.Column="1">
|
||||
<ui:Button Icon="{ui:SymbolIcon Add24}" />
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
<ItemsControl Grid.Row="1">
|
||||
<ItemsControl.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<StackPanel/>
|
||||
<StackPanel />
|
||||
</ItemsPanelTemplate>
|
||||
</ItemsControl.ItemsPanel>
|
||||
|
||||
@@ -29,71 +51,94 @@
|
||||
<Border Height="60" CornerRadius="5">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="60"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="75"/>
|
||||
<ColumnDefinition Width="60" />
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="75" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Grid Grid.Column="0">
|
||||
<ui:SymbolIcon Symbol="Document24" FontSize="40"/>
|
||||
<ui:SymbolIcon FontSize="40" Symbol="Document24" />
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Column="1" Margin="0,0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="10"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="10" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Grid Grid.Row="0" Margin="2, 0">
|
||||
<Grid Grid.Row="0" Margin="2,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="50"/>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="50" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Grid Grid.Column="0">
|
||||
<TextBlock Text="File Name" FontWeight="SemiBold" VerticalAlignment="Center"/>
|
||||
<TextBlock
|
||||
VerticalAlignment="Center"
|
||||
FontWeight="SemiBold"
|
||||
Text="File Name" />
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Column="1">
|
||||
<TextBlock Text="Progress" FontSize="11" HorizontalAlignment="Right" VerticalAlignment="Center"/>
|
||||
<TextBlock
|
||||
HorizontalAlignment="Right"
|
||||
VerticalAlignment="Center"
|
||||
FontSize="11"
|
||||
Text="Progress" />
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Row="1">
|
||||
<ProgressBar Height="7"/>
|
||||
<ProgressBar Height="7" />
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Row="2" Margin="2, 0">
|
||||
<Grid Grid.Row="2" Margin="2,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="75"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="75" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Grid Grid.Column="0">
|
||||
<TextBlock Text="Speed" FontSize="10" Opacity="0.75"/>
|
||||
<TextBlock
|
||||
FontSize="10"
|
||||
Opacity="0.75"
|
||||
Text="Speed" />
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Column="1">
|
||||
<TextBlock Text="File Size" FontSize="10" Opacity="0.75"/>
|
||||
<TextBlock
|
||||
FontSize="10"
|
||||
Opacity="0.75"
|
||||
Text="File Size" />
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Column="2" Margin="5,0,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Grid Grid.Column="0">
|
||||
<ui:Button Height="20" Margin="2" Appearance="Transparent" BorderThickness="0" HorizontalAlignment="Stretch"/>
|
||||
<ui:SymbolIcon Symbol="Pause20" FontSize="15"/>
|
||||
<ui:Button
|
||||
Height="20"
|
||||
Margin="2"
|
||||
HorizontalAlignment="Stretch"
|
||||
Appearance="Transparent"
|
||||
BorderThickness="0" />
|
||||
<ui:SymbolIcon FontSize="15" Symbol="Pause20" />
|
||||
</Grid>
|
||||
|
||||
<Grid Grid.Column="1">
|
||||
<ui:Button Height="20" Margin="2" Appearance="Transparent" BorderThickness="0" HorizontalAlignment="Stretch"/>
|
||||
<ui:SymbolIcon Symbol="Dismiss20" FontSize="15"/>
|
||||
<ui:Button
|
||||
Height="20"
|
||||
Margin="2"
|
||||
HorizontalAlignment="Stretch"
|
||||
Appearance="Transparent"
|
||||
BorderThickness="0" />
|
||||
<ui:SymbolIcon FontSize="15" Symbol="Dismiss20" />
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
Reference in New Issue
Block a user