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

64 lines
2.9 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.CustomResource.UserControls.Pipeline"
  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="30"
  9. d:DesignWidth="800"
  10. mc:Ignorable="d">
  11. <Grid>
  12. <Border CornerRadius="{Binding CapRadius, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}">
  13. <Border.Background>
  14. <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
  15. <GradientStop Offset="0.8" Color="#FFCBCBCB" />
  16. <GradientStop Offset="0.5" Color="White" />
  17. <GradientStop Offset="0.1" Color="#FFCBCBCB" />
  18. </LinearGradientBrush>
  19. </Border.Background>
  20. <Border Name="border" Margin="3">
  21. <Line
  22. Name="liquidLine"
  23. VerticalAlignment="Center"
  24. Opacity="0.3"
  25. Stretch="Fill"
  26. Stroke="{Binding LiquidColor, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}"
  27. StrokeDashArray="2,3"
  28. StrokeDashCap="Round"
  29. StrokeEndLineCap="Round"
  30. StrokeStartLineCap="Round"
  31. StrokeThickness="{Binding ElementName=border, Path=ActualHeight}"
  32. X1="0"
  33. X2="{Binding RelativeSource={RelativeSource Self}, Path=ActualWidth}"
  34. Y1="0"
  35. Y2="0" />
  36. </Border>
  37. </Border>
  38. <VisualStateManager.VisualStateGroups>
  39. <VisualStateGroup>
  40. <VisualState Name="WEFlowState">
  41. <Storyboard RepeatBehavior="Forever">
  42. <DoubleAnimation
  43. Storyboard.TargetName="liquidLine"
  44. Storyboard.TargetProperty="StrokeDashOffset"
  45. From="0"
  46. To="5"
  47. Duration="0:0:1" />
  48. </Storyboard>
  49. </VisualState>
  50. <VisualState Name="EWFlowState">
  51. <Storyboard RepeatBehavior="Forever">
  52. <DoubleAnimation
  53. Storyboard.TargetName="liquidLine"
  54. Storyboard.TargetProperty="StrokeDashOffset"
  55. From="0"
  56. To="-5"
  57. Duration="0:0:1" />
  58. </Storyboard>
  59. </VisualState>
  60. </VisualStateGroup>
  61. </VisualStateManager.VisualStateGroups>
  62. </Grid>
  63. </UserControl>