终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

115 lines
4.6 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.CustomResource.UserControls.SkeletonScreen"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:BPASmartClient.CustomResource.UserControls"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. d:DesignHeight="100"
  9. d:DesignWidth="900"
  10. mc:Ignorable="d">
  11. <UserControl.Triggers>
  12. <EventTrigger RoutedEvent="UserControl.Loaded">
  13. <BeginStoryboard>
  14. <Storyboard>
  15. <ColorAnimation
  16. AutoReverse="True"
  17. RepeatBehavior="Forever"
  18. Storyboard.TargetName="imgBlack"
  19. Storyboard.TargetProperty="(Background).(SolidColorBrush.Color)"
  20. To="#f7f9fa"
  21. Duration="0:0:1" />
  22. <DoubleAnimation
  23. AutoReverse="True"
  24. RepeatBehavior="Forever"
  25. Storyboard.TargetName="border1"
  26. Storyboard.TargetProperty="Background.GradientStops[1].Offset"
  27. To="1"
  28. Duration="0:0:1.5" />
  29. <DoubleAnimation
  30. AutoReverse="True"
  31. RepeatBehavior="Forever"
  32. Storyboard.TargetName="border2"
  33. Storyboard.TargetProperty="Background.GradientStops[1].Offset"
  34. To="1"
  35. Duration="0:0:2" />
  36. <DoubleAnimation
  37. AutoReverse="True"
  38. RepeatBehavior="Forever"
  39. Storyboard.TargetName="border3"
  40. Storyboard.TargetProperty="Background.GradientStops[1].Offset"
  41. To="1"
  42. Duration="0:0:1.3" />
  43. </Storyboard>
  44. </BeginStoryboard>
  45. </EventTrigger>
  46. </UserControl.Triggers>
  47. <Grid Margin="0,8">
  48. <Grid.ColumnDefinitions>
  49. <ColumnDefinition Width="160" />
  50. <ColumnDefinition />
  51. </Grid.ColumnDefinitions>
  52. <Border
  53. x:Name="imgBlack"
  54. Width="80"
  55. Height="65"
  56. Background="#ddd"
  57. CornerRadius="10" />
  58. <StackPanel Grid.Column="1" VerticalAlignment="Center">
  59. <Border ClipToBounds="True">
  60. <Border
  61. Name="border1"
  62. Width="650"
  63. Height="16"
  64. Margin="-200,0"
  65. HorizontalAlignment="Left">
  66. <Border.Background>
  67. <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
  68. <GradientStop Offset="0" Color="#ddd" />
  69. <GradientStop Offset="0" Color="#f7f9fa" />
  70. <GradientStop Offset="1" Color="#ddd" />
  71. </LinearGradientBrush>
  72. </Border.Background>
  73. </Border>
  74. </Border>
  75. <Border ClipToBounds="True">
  76. <Border
  77. Name="border2"
  78. Height="16"
  79. Margin="-200,10">
  80. <Border.Background>
  81. <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
  82. <GradientStop Offset="0" Color="#ddd" />
  83. <GradientStop Offset="0" Color="#f7f9fa" />
  84. <GradientStop Offset="1" Color="#ddd" />
  85. </LinearGradientBrush>
  86. </Border.Background>
  87. </Border>
  88. </Border>
  89. <Border ClipToBounds="True">
  90. <Border
  91. Name="border3"
  92. Width="580"
  93. Height="16"
  94. Margin="-200,0"
  95. HorizontalAlignment="Left">
  96. <Border.Background>
  97. <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
  98. <GradientStop Offset="0" Color="#ddd" />
  99. <GradientStop Offset="0" Color="#f7f9fa" />
  100. <GradientStop Offset="1" Color="#ddd" />
  101. </LinearGradientBrush>
  102. </Border.Background>
  103. </Border>
  104. </Border>
  105. </StackPanel>
  106. </Grid>
  107. </UserControl>