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

50 rivejä
2.2 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.CustomResource.UserControls.PipeLineBR"
  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="100"
  10. mc:Ignorable="d">
  11. <Grid Name="gr">
  12. <Viewbox Width="auto" Height="auto">
  13. <Canvas
  14. Width="100"
  15. Height="100"
  16. ClipToBounds="True">
  17. <Ellipse
  18. Name="ell"
  19. Width="200"
  20. Height="200">
  21. <Ellipse.Fill>
  22. <RadialGradientBrush GradientOrigin="0.5,0.5">
  23. <GradientStop Offset="0" Color="Transparent" />
  24. <GradientStop Offset="0.5" Color="Transparent" />
  25. <GradientStop Offset="0.5" Color="{Binding Fill, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}" />
  26. <GradientStop Offset="0.75" Color="Snow" />
  27. <GradientStop Offset="1" Color="{Binding Fill, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}" />
  28. </RadialGradientBrush>
  29. </Ellipse.Fill>
  30. </Ellipse>
  31. <Ellipse
  32. Name="mp"
  33. Canvas.Left="21"
  34. Canvas.Top="21"
  35. Width="150"
  36. Height="150"
  37. Visibility="Collapsed"
  38. Opacity="0.8"
  39. Stroke="{Binding LineBrush, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}"
  40. StrokeDashArray="2 4"
  41. StrokeDashCap="Round"
  42. StrokeEndLineCap="Round"
  43. StrokeStartLineCap="Round"
  44. StrokeThickness="4" />
  45. </Canvas>
  46. </Viewbox>
  47. </Grid>
  48. </UserControl>