终端一体化运控平台
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

51 行
2.2 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.CustomResource.UserControls.PipeLineTL"
  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. Margin="-100">
  22. <Ellipse.Fill>
  23. <RadialGradientBrush GradientOrigin="0.5,0.5">
  24. <GradientStop Offset="0" Color="Transparent" />
  25. <GradientStop Offset="0.5" Color="Transparent" />
  26. <GradientStop Offset="0.5" Color="{Binding Fill, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}" />
  27. <GradientStop Offset="0.75" Color="Snow" />
  28. <GradientStop Offset="1" Color="{Binding Fill, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}" />
  29. </RadialGradientBrush>
  30. </Ellipse.Fill>
  31. </Ellipse>
  32. <Ellipse
  33. Name="mp"
  34. Canvas.Right="21"
  35. Canvas.Bottom="21"
  36. Width="150"
  37. Height="150"
  38. Visibility="Collapsed"
  39. Opacity="0.8"
  40. Stroke="{Binding LineBrush, RelativeSource={RelativeSource AncestorType=UserControl, Mode=FindAncestor}}"
  41. StrokeDashArray="2 4"
  42. StrokeDashCap="Round"
  43. StrokeEndLineCap="Round"
  44. StrokeStartLineCap="Round"
  45. StrokeThickness="4" />
  46. </Canvas>
  47. </Viewbox>
  48. </Grid>
  49. </UserControl>