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

75 lines
3.5 KiB

  1. <UserControl x:Class="BPASmartClient.SCADAControl.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. <Grid.RowDefinitions>
  11. <RowDefinition />
  12. <RowDefinition />
  13. </Grid.RowDefinitions>
  14. <TextBlock
  15. HorizontalAlignment="Center"
  16. VerticalAlignment="Top"
  17. Margin="0 10 0 35"
  18. FontSize="20"
  19. Foreground="#FF1FD622"
  20. Tag="出料控制"
  21. Text="出料中..." Visibility="Collapsed" />
  22. <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">
  23. <Ellipse.RenderTransform>
  24. <TransformGroup>
  25. <ScaleTransform/>
  26. <SkewTransform AngleY="0"/>
  27. <RotateTransform Angle="0"/>
  28. <TranslateTransform/>
  29. </TransformGroup>
  30. </Ellipse.RenderTransform>
  31. <Ellipse.Stroke>
  32. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" Opacity="0.4">
  33. <GradientStop Color="#CCA48E42"/>
  34. <GradientStop Color="#CC2D48DA" Offset="1"/>
  35. <GradientStop Color="#FF3FD256" Offset="0.305"/>
  36. <!--<GradientStop Color="#FFB12C87" Offset="0.67"/>-->
  37. </LinearGradientBrush>
  38. </Ellipse.Stroke>
  39. </Ellipse>
  40. <TextBlock
  41. HorizontalAlignment="Center"
  42. VerticalAlignment="Bottom"
  43. Margin="0 0 0 35"
  44. FontSize="45"
  45. Foreground="#FFCCD61F" Tag="Title"
  46. Text="{Binding Title,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" />
  47. <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center">
  48. <TextBlock
  49. Margin="0,20,0,0"
  50. HorizontalAlignment="Center"
  51. FontSize="20"
  52. Foreground="#FF00FFF9" Tag="Value"
  53. Text="{Binding Value,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" />
  54. <TextBlock
  55. Margin="0,20,0,0"
  56. HorizontalAlignment="Center"
  57. FontSize="20"
  58. Foreground="#FF00FFF9"
  59. Text="(g)" />
  60. </StackPanel>
  61. <TextBlock
  62. Grid.Row="1" Tag="Text"
  63. Margin="0,70,0,0"
  64. HorizontalAlignment="Center"
  65. FontSize="25"
  66. Foreground="#FFFFA400"
  67. Text="{Binding Text,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" />
  68. <Image
  69. Grid.RowSpan="2"
  70. Source="/BPASmartClient.SCADAControl;component/Images/光柱.png"
  71. Stretch="Fill" />
  72. <ListBox Visibility="Collapsed" ItemsSource="{Binding EventNameList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></ListBox>
  73. </Grid>
  74. </UserControl>