终端一体化运控平台
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.
 
 
 

145 lines
10 KiB

  1. <UserControl x:Class="BPASmartClient.MinimalistUI.FControl.HBLControl"
  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:BPASmartClient.MinimalistUI.FControl"
  7. mc:Ignorable="d"
  8. d:DesignHeight="140" d:DesignWidth="140">
  9. <UserControl.Resources>
  10. <ResourceDictionary>
  11. <LinearGradientBrush x:Key="yanjing" EndPoint="0,1">
  12. <GradientStop Color="#CC00EAFF" Offset="0.08"></GradientStop>
  13. <GradientStop Color="Transparent" Offset="0.08"></GradientStop>
  14. <GradientStop Color="Transparent" Offset="0.16"></GradientStop>
  15. <GradientStop Color="#CC00EAFF" Offset="0.16"></GradientStop>
  16. <GradientStop Color="#CC00EAFF" Offset="0.24"></GradientStop>
  17. <GradientStop Color="Transparent" Offset="0.24"></GradientStop>
  18. <GradientStop Color="Transparent" Offset="0.32"></GradientStop>
  19. <GradientStop Color="#CC00EAFF" Offset="0.32"></GradientStop>
  20. <GradientStop Color="#CC00EAFF" Offset="0.40"></GradientStop>
  21. <GradientStop Color="Transparent" Offset="0.40"></GradientStop>
  22. <GradientStop Color="Transparent" Offset="0.48"></GradientStop>
  23. <GradientStop Color="#CC00EAFF" Offset="0.48"></GradientStop>
  24. <GradientStop Color="#CC00EAFF" Offset="0.56"></GradientStop>
  25. <GradientStop Color="Transparent" Offset="0.56"></GradientStop>
  26. <GradientStop Color="Transparent" Offset="0.64"></GradientStop>
  27. <GradientStop Color="#CC00EAFF" Offset="0.64"></GradientStop>
  28. <GradientStop Color="#CC00EAFF" Offset="0.72"></GradientStop>
  29. <GradientStop Color="Transparent" Offset="0.72"></GradientStop>
  30. <GradientStop Color="Transparent" Offset="0.80"></GradientStop>
  31. <GradientStop Color="#CC00EAFF" Offset="0.80"></GradientStop>
  32. <GradientStop Color="#CC00EAFF" Offset="0.88"></GradientStop>
  33. <GradientStop Color="Transparent" Offset="0.88"></GradientStop>
  34. <GradientStop Color="Transparent" Offset="0.96"></GradientStop>
  35. <GradientStop Color="#CC00EAFF" Offset="0.96"></GradientStop>
  36. </LinearGradientBrush>
  37. <Storyboard x:Key="Storyboard1" RepeatBehavior="Forever">
  38. <PointAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Stroke).(LinearGradientBrush.StartPoint)"
  39. Storyboard.TargetName="rectangle">
  40. <EasingPointKeyFrame KeyTime="0:0:0.5" Value="0.855,0.148"/>
  41. <EasingPointKeyFrame KeyTime="0:0:1" Value="0.852,0.855"/>
  42. <EasingPointKeyFrame KeyTime="0:0:1.5" Value="0.148,0.855"/>
  43. <EasingPointKeyFrame KeyTime="0:0:2" Value="0.144,0.149"/>
  44. <EasingPointKeyFrame KeyTime="0:0:2.5" Value="0,0"/>
  45. <EasingPointKeyFrame KeyTime="0:0:3" Value="0.855,0.148"/>
  46. <EasingPointKeyFrame KeyTime="0:0:3.5" Value="0.852,0.855"/>
  47. <EasingPointKeyFrame KeyTime="0:0:4" Value="0.148,0.855"/>
  48. <EasingPointKeyFrame KeyTime="0:0:4.5" Value="0.144,0.149"/>
  49. <EasingPointKeyFrame KeyTime="0:0:5" Value="0,0"/>
  50. </PointAnimationUsingKeyFrames>
  51. <PointAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Stroke).(LinearGradientBrush.EndPoint)"
  52. Storyboard.TargetName="rectangle">
  53. <EasingPointKeyFrame KeyTime="0:0:0.5" Value="0.145,0.852"/>
  54. <EasingPointKeyFrame KeyTime="0:0:1" Value="0.148,0.145"/>
  55. <EasingPointKeyFrame KeyTime="0:0:1.5" Value="0.852,0.145"/>
  56. <EasingPointKeyFrame KeyTime="0:0:2" Value="0.856,0.851"/>
  57. <EasingPointKeyFrame KeyTime="0:0:2.5" Value="0,1"/>
  58. <EasingPointKeyFrame KeyTime="0:0:3" Value="0.145,0.852"/>
  59. <EasingPointKeyFrame KeyTime="0:0:3.5" Value="0.148,0.145"/>
  60. <EasingPointKeyFrame KeyTime="0:0:4" Value="0.852,0.145"/>
  61. <EasingPointKeyFrame KeyTime="0:0:4.5" Value="0.856,0.851"/>
  62. <EasingPointKeyFrame KeyTime="0:0:5" Value="0,1"/>
  63. </PointAnimationUsingKeyFrames>
  64. <ColorAnimationUsingKeyFrames Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(Shape.Stroke).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
  65. <EasingColorKeyFrame KeyTime="00:00:02" Value="Lime"/>
  66. <EasingColorKeyFrame KeyTime="00:00:02.5000000" Value="#FF075AFF"/>
  67. <EasingColorKeyFrame KeyTime="00:00:4.5" Value="Lime"/>
  68. <EasingColorKeyFrame KeyTime="00:00:5" Value="#FF075AFF"/>
  69. </ColorAnimationUsingKeyFrames>
  70. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="ico_map">
  71. <EasingDoubleKeyFrame KeyTime="0:0:2.5" Value="-180"/>
  72. <EasingDoubleKeyFrame KeyTime="0:0:5" Value="-360"/>
  73. </DoubleAnimationUsingKeyFrames>
  74. </Storyboard>
  75. <Storyboard x:Key="StoryboardZY" RepeatBehavior="Forever">
  76. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Height)" Storyboard.TargetName="border">
  77. <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="12"/>
  78. <EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="6"/>
  79. <EasingDoubleKeyFrame KeyTime="0:0:1.4" Value="12"/>
  80. <EasingDoubleKeyFrame KeyTime="0:0:3" Value="12"/>
  81. </DoubleAnimationUsingKeyFrames>
  82. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Height)" Storyboard.TargetName="border1">
  83. <EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="12"/>
  84. <EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="6"/>
  85. <EasingDoubleKeyFrame KeyTime="0:0:1.4" Value="12"/>
  86. <EasingDoubleKeyFrame KeyTime="0:0:3" Value="12"/>
  87. </DoubleAnimationUsingKeyFrames>
  88. </Storyboard>
  89. </ResourceDictionary>
  90. </UserControl.Resources>
  91. <UserControl.Triggers>
  92. <EventTrigger RoutedEvent="FrameworkElement.Loaded">
  93. <BeginStoryboard Storyboard="{StaticResource Storyboard1}"/>
  94. <BeginStoryboard Storyboard="{StaticResource StoryboardZY}"/>
  95. </EventTrigger>
  96. </UserControl.Triggers>
  97. <Grid Width="100" Height="100" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="20">
  98. <Image x:Name="ico_map" Width="85" Height="85" UseLayoutRounding="True" SnapsToDevicePixels="True" RenderOptions.BitmapScalingMode="HighQuality" Source="/Images/椭圆 22 副本 2.png" RenderTransformOrigin="0.5,0.5" >
  99. <Image.RenderTransform>
  100. <TransformGroup>
  101. <ScaleTransform/>
  102. <SkewTransform/>
  103. <RotateTransform/>
  104. <TranslateTransform/>
  105. </TransformGroup>
  106. </Image.RenderTransform>
  107. </Image>
  108. <Image HorizontalAlignment="Center" Margin="0,90,0,0" UseLayoutRounding="True" SnapsToDevicePixels="True" RenderOptions.BitmapScalingMode="HighQuality" VerticalAlignment="Top" Width="100" Height="20" Source="/Images/top_h.png" />
  109. <Grid x:Name="grid_xiaoboluo" Width="100" Height="100" MouseEnter="grid_MouseEnter" MouseLeave="grid_MouseLeave">
  110. <Grid>
  111. <Ellipse x:Name="rectangle" Width="70" Height="70" StrokeThickness="4" Fill="#FF022E50">
  112. <Ellipse.Stroke>
  113. <LinearGradientBrush Opacity="1">
  114. <GradientStop Color="Transparent" Offset="0"/>
  115. <GradientStop Color="#FF075AFF" Offset="1"/>
  116. </LinearGradientBrush>
  117. </Ellipse.Stroke>
  118. </Ellipse>
  119. <Image x:Name="ico" UseLayoutRounding="True" SnapsToDevicePixels="True" RenderOptions.BitmapScalingMode="HighQuality" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="-20,25,0,0" Width="25" Height="30" Source="/Images/logo-pic.png" />
  120. <Image Width="31.6" UseLayoutRounding="True" SnapsToDevicePixels="True" RenderOptions.BitmapScalingMode="HighQuality" Height="7.9" Margin="20,0,0,25" Source="/Images/logo-Text.png" />
  121. <TextBlock Margin="0,24,0,0" UseLayoutRounding="True" SnapsToDevicePixels="True" RenderOptions.BitmapScalingMode="HighQuality" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14" Foreground="#FF00EAFF" FontFamily="黑体" FontWeight="Bold">智能卓越</TextBlock>
  122. </Grid>
  123. <Grid x:Name="grid_celine" Visibility="Collapsed">
  124. <Grid.ColumnDefinitions>
  125. <ColumnDefinition></ColumnDefinition>
  126. <ColumnDefinition></ColumnDefinition>
  127. </Grid.ColumnDefinitions>
  128. <Ellipse Grid.ColumnSpan="2" Width="70" Height="70" Fill="#2571ac" ></Ellipse>
  129. <Grid x:Name="yanjing_move" Grid.ColumnSpan="2" Width="35" Height="35">
  130. <Grid >
  131. <Border x:Name="border1" HorizontalAlignment="Left" Grid.Column="0" Background="{DynamicResource yanjing}" CornerRadius="2" Width="8" Height="12"/>
  132. <Border x:Name="border" HorizontalAlignment="Right" Grid.Column="1" Background="{DynamicResource yanjing}" CornerRadius="2" Width="8" Height="12"/>
  133. </Grid>
  134. </Grid>
  135. </Grid>
  136. </Grid>
  137. </Grid>
  138. </UserControl>