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

43 lines
2.0 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.CustomResource.UserControls.PipeLineH"
  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="450"
  9. d:DesignWidth="800"
  10. mc:Ignorable="d">
  11. <Grid Name="gr">
  12. <Viewbox Width="auto" Height="auto">
  13. <Canvas
  14. Width="{Binding ElementName=gr, Path=ActualWidth}"
  15. Height="{Binding ElementName=gr, Path=ActualHeight}"
  16. ClipToBounds="True">
  17. <Rectangle Width="{Binding ElementName=gr, Path=ActualWidth}" Height="{Binding ElementName=gr, Path=ActualHeight}">
  18. <Rectangle.Fill>
  19. <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
  20. <GradientStop Offset="0" Color="{Binding Fill, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}" />
  21. <GradientStop Offset="0.5" Color="Snow" />
  22. <GradientStop Offset="1" Color="{Binding Fill, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}" />
  23. </LinearGradientBrush>
  24. </Rectangle.Fill>
  25. </Rectangle>
  26. <Path
  27. Name="mp"
  28. Opacity="0.8"
  29. Stroke="{Binding LineBrush, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}"
  30. StrokeDashArray="2 4"
  31. StrokeDashCap="Round"
  32. Visibility="Collapsed"
  33. StrokeEndLineCap="Round"
  34. StrokeStartLineCap="Round"
  35. StrokeThickness="4" />
  36. </Canvas>
  37. </Viewbox>
  38. </Grid>
  39. </UserControl>