PageSpeedLeft.xaml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <local:MyPageLeft x:Class="PageSpeedLeft"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:PCL"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" Width="200" HorizontalAlignment="Left">
  9. <Grid.Resources>
  10. <ResourceDictionary>
  11. <Style TargetType="TextBlock" x:Key="Split">
  12. <Setter Property="UseLayoutRounding" Value="True" />
  13. <Setter Property="SnapsToDevicePixels" Value="True" />
  14. <Setter Property="Height" Value="2" />
  15. <Setter Property="Margin" Value="25,7" />
  16. <Setter Property="Background">
  17. <Setter.Value>
  18. <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
  19. <GradientStop Color="{DynamicResource ColorObjectBg1}" Offset="0"/>
  20. <GradientStop Color="{DynamicResource ColorObject3}" Offset="0.02"/>
  21. <GradientStop Color="{DynamicResource ColorObject3}" Offset="0.98"/>
  22. <GradientStop Color="{DynamicResource ColorObjectBg1}" Offset="1"/>
  23. </LinearGradientBrush>
  24. </Setter.Value>
  25. </Setter>
  26. </Style>
  27. </ResourceDictionary>
  28. </Grid.Resources>
  29. <Grid.RowDefinitions>
  30. <RowDefinition Height="1*" />
  31. <RowDefinition Height="Auto" />
  32. <RowDefinition Height="Auto" />
  33. <RowDefinition Height="Auto" />
  34. <RowDefinition Height="0.6*" />
  35. <RowDefinition Height="Auto" />
  36. <RowDefinition Height="Auto" />
  37. <RowDefinition Height="Auto" />
  38. <RowDefinition Height="0.6*" />
  39. <RowDefinition Height="Auto" />
  40. <RowDefinition Height="Auto" />
  41. <RowDefinition Height="Auto" />
  42. <RowDefinition Height="0.6*" />
  43. <RowDefinition Height="Auto" />
  44. <RowDefinition Height="Auto" />
  45. <RowDefinition Height="Auto" />
  46. <RowDefinition Height="1*" />
  47. </Grid.RowDefinitions>
  48. <TextBlock Text="总进度" Grid.Row="1" HorizontalAlignment="Center" FontSize="14" Foreground="{DynamicResource ColorBrush3}" />
  49. <TextBlock Grid.Row="2" Style="{DynamicResource Split}" />
  50. <TextBlock Text="00.00 %" Grid.Row="3" Name="LabProgress" HorizontalAlignment="Center" FontSize="20" />
  51. <TextBlock Text="下载速度" Grid.Row="5" HorizontalAlignment="Center" FontSize="14" Foreground="{DynamicResource ColorBrush3}" />
  52. <TextBlock Grid.Row="6" Style="{DynamicResource Split}" />
  53. <TextBlock Text="0 B/s" Grid.Row="7" Name="LabSpeed" HorizontalAlignment="Center" FontSize="20" />
  54. <TextBlock Text="剩余文件" Grid.Row="9" HorizontalAlignment="Center" FontSize="14" Foreground="{DynamicResource ColorBrush3}" />
  55. <TextBlock Grid.Row="10" Style="{DynamicResource Split}" />
  56. <TextBlock Text="123456789" Grid.Row="11" Name="LabFile" HorizontalAlignment="Center" FontSize="20" />
  57. <TextBlock Text="剩余线程" Grid.Row="13" HorizontalAlignment="Center" FontSize="14" Foreground="{DynamicResource ColorBrush3}" />
  58. <TextBlock Grid.Row="14" Style="{DynamicResource Split}" />
  59. <TextBlock Text="123456789" Grid.Row="15" Name="LabThread" HorizontalAlignment="Center" FontSize="20" />
  60. </local:MyPageLeft>