终端一体化运控平台
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

BatchingMachine.xaml 4.2 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <UserControl
  2. x:Class="BPASmartClient.CustomResource.UserControls.BatchingMachine"
  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="235"
  9. d:DesignWidth="390"
  10. mc:Ignorable="d">
  11. <UserControl.Resources>
  12. <SolidColorBrush x:Key="fillColor" Color="#446BADF7" />
  13. <SolidColorBrush x:Key="BorderColor" Color="#663FADFF" />
  14. </UserControl.Resources>
  15. <Grid Name="gr">
  16. <Viewbox Width="auto" Height="auto">
  17. <Canvas Width="390" Height="235">
  18. <Path
  19. Data="M100,0 L350,60 250,90 0,30 100,0"
  20. Fill="{StaticResource fillColor}"
  21. Stroke="{StaticResource BorderColor}" />
  22. <Path
  23. Data="M0,30 L0,170 250,230 250,90"
  24. Fill="{StaticResource fillColor}"
  25. Stroke="{StaticResource BorderColor}" />
  26. <Path
  27. Data="M250,230 L350,170 350,60 250,90"
  28. Fill="{StaticResource fillColor}"
  29. Stroke="{StaticResource BorderColor}" />
  30. <Path
  31. Data="M350,60 L390,100 290,140 250,90"
  32. Fill="{StaticResource fillColor}"
  33. Stroke="{StaticResource BorderColor}" />
  34. <Path
  35. Data="M290,140 L250,130"
  36. Fill="{StaticResource fillColor}"
  37. Stroke="{StaticResource BorderColor}" />
  38. <Path
  39. Data="M390,100 L350,90"
  40. Fill="{StaticResource fillColor}"
  41. Stroke="{StaticResource BorderColor}" />
  42. <TextBlock
  43. Canvas.Left="31"
  44. Canvas.Top="156"
  45. HorizontalAlignment="Left"
  46. VerticalAlignment="Center"
  47. FontSize="25"
  48. Foreground="Red"
  49. RenderTransformOrigin="0.5,0.5"
  50. Text="IP:192.168.0.1">
  51. <TextBlock.RenderTransform>
  52. <TransformGroup>
  53. <ScaleTransform />
  54. <SkewTransform />
  55. <RotateTransform Angle="12.644" />
  56. <TranslateTransform />
  57. </TransformGroup>
  58. </TextBlock.RenderTransform>
  59. </TextBlock>
  60. <TextBlock
  61. Canvas.Left="55"
  62. Canvas.Top="106"
  63. FontSize="25"
  64. Foreground="Red"
  65. RenderTransformOrigin="0.5,0.5"
  66. Text="原料设备A">
  67. <TextBlock.RenderTransform>
  68. <TransformGroup>
  69. <ScaleTransform />
  70. <SkewTransform />
  71. <RotateTransform Angle="12.644" />
  72. <TranslateTransform />
  73. </TransformGroup>
  74. </TextBlock.RenderTransform>
  75. </TextBlock>
  76. <TextBlock
  77. Canvas.Left="275"
  78. Canvas.Top="78"
  79. HorizontalAlignment="Left"
  80. VerticalAlignment="Center"
  81. FontSize="25"
  82. Foreground="Red"
  83. RenderTransformOrigin="0.721,0.662"
  84. Text="125.0 kg">
  85. <TextBlock.RenderTransform>
  86. <TransformGroup>
  87. <ScaleTransform />
  88. <SkewTransform />
  89. <RotateTransform Angle="-21.298" />
  90. <TranslateTransform X="0.241" Y="-6.13" />
  91. </TransformGroup>
  92. </TextBlock.RenderTransform>
  93. </TextBlock>
  94. </Canvas>
  95. </Viewbox>
  96. </Grid>
  97. </UserControl>