终端一体化运控平台
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

85 Zeilen
4.3 KiB

  1. <UserControl x:Class="BPASmartClient.SCADAControl.CustomerControls.Silos"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:BPASmartClient.SCADAControl"
  7. mc:Ignorable="d"
  8. d:DesignHeight="270" d:DesignWidth="180" >
  9. <Grid>
  10. <Viewbox Width="auto" Height="auto" Grid.Row="1">
  11. <Grid Width="180" Height="270">
  12. <Grid.RowDefinitions>
  13. <RowDefinition />
  14. <RowDefinition />
  15. </Grid.RowDefinitions>
  16. <TextBlock
  17. HorizontalAlignment="Center"
  18. VerticalAlignment="Top"
  19. Margin="0 10 0 35"
  20. FontSize="20"
  21. Foreground="#FF1FD622"
  22. Tag="出料控制"
  23. Text="出料中..." Visibility="Collapsed"/>
  24. <Ellipse Grid.Row="0" Tag="出料圆" Margin="0,40,0,0" Visibility="Collapsed" StrokeThickness="60" Width="150" Height="70" RenderTransformOrigin="0.5,0.5" VerticalAlignment="Top">
  25. <Ellipse.RenderTransform>
  26. <TransformGroup>
  27. <ScaleTransform/>
  28. <SkewTransform AngleY="0"/>
  29. <RotateTransform Angle="0"/>
  30. <TranslateTransform/>
  31. </TransformGroup>
  32. </Ellipse.RenderTransform>
  33. <Ellipse.Stroke>
  34. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" Opacity="0.4">
  35. <GradientStop Color="#CCA48E42"/>
  36. <GradientStop Color="#CC2D48DA" Offset="1"/>
  37. <GradientStop Color="#FF3FD256" Offset="0.305"/>
  38. <!--<GradientStop Color="#FFB12C87" Offset="0.67"/>-->
  39. </LinearGradientBrush>
  40. </Ellipse.Stroke>
  41. </Ellipse>
  42. <TextBlock
  43. HorizontalAlignment="Center"
  44. VerticalAlignment="Bottom"
  45. Margin="0 0 0 35"
  46. FontSize="45"
  47. Foreground="#FFCCD61F" Tag="Title"
  48. Text="{Binding Title,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" />
  49. <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center">
  50. <TextBlock
  51. Margin="0,20,0,0"
  52. HorizontalAlignment="Center"
  53. FontSize="20"
  54. Foreground="#FF00FFF9" Tag="Value"
  55. Text="{Binding Value,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" />
  56. <TextBlock
  57. Margin="0,20,0,0"
  58. HorizontalAlignment="Center"
  59. FontSize="20"
  60. Foreground="#FF00FFF9"
  61. Text="(g)" />
  62. </StackPanel>
  63. <TextBlock
  64. Grid.Row="1" Tag="Text"
  65. Margin="0,70,0,0"
  66. HorizontalAlignment="Center"
  67. FontSize="25"
  68. Foreground="#FFFFA400"
  69. Text="{Binding Text,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" />
  70. <Image
  71. Grid.RowSpan="2"
  72. Source="/BPASmartClient.SCADAControl;component/Images/光柱.png"
  73. Stretch="Fill" />
  74. <!--<StackPanel Tag="ControlEvent" HorizontalAlignment="Right" Orientation="Vertical" Grid.Row="1" VerticalAlignment="Bottom" >
  75. <Image Margin="20,10,0,0" Tag="出料" Source="/BPASmartClient.SCADAControl;component/Images/借出.png" Cursor="Hand" ToolTip="出料" Width="24" ></Image>
  76. <Image Margin="20,10,0,10" Tag="停止出料" Source="/BPASmartClient.SCADAControl;component/Images/退出.png" Cursor="Hand" Width="24" ToolTip="停止出料"></Image>
  77. </StackPanel>-->
  78. </Grid>
  79. </Viewbox>
  80. </Grid>
  81. </UserControl>