AITSignalTower.xaml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <UserControl x:Class="Aitex.Core.UI.DeviceControl.AITSignalTower"
  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. mc:Ignorable="d"
  7. d:DesignHeight="105" d:DesignWidth="30" x:Name="signalTower">
  8. <Grid Height="105" Width="30">
  9. <Grid.RowDefinitions>
  10. <RowDefinition Height="20" />
  11. <RowDefinition Height="20" />
  12. <RowDefinition Height="20" />
  13. <RowDefinition Height="20" />
  14. <RowDefinition Height="20" />
  15. </Grid.RowDefinitions>
  16. <Image Canvas.Left="0" Canvas.Top="0" Name="rectangle1" Stretch="Fill" Source="pack://application:,,,/MECF.Framework.Common;component/Resources/red.png" Width="30" Height="20" VerticalAlignment="Top">
  17. <Image.Effect>
  18. <DropShadowEffect ShadowDepth="0"
  19. Color="Red"
  20. RenderingBias="Performance"
  21. Opacity="1"
  22. BlurRadius="20"/>
  23. </Image.Effect>
  24. <Image.Style>
  25. <Style>
  26. <Setter Property="Image.Opacity" Value="0.4"/>
  27. <Style.Triggers>
  28. <DataTrigger Binding="{Binding ElementName=signalTower,Path=IsRedLightOn}" Value="True">
  29. <Setter Property="Image.Opacity" Value="1"/>
  30. </DataTrigger>
  31. </Style.Triggers>
  32. </Style>
  33. </Image.Style>
  34. </Image>
  35. <Image Grid.Row="1" Canvas.Left="0" Canvas.Top="0" Name="rectangle2" Stretch="Fill" Source="pack://application:,,,/MECF.Framework.Common;component/Resources/yellow.png" Width="30" Height="20" VerticalAlignment="Bottom">
  36. <Image.Effect>
  37. <DropShadowEffect ShadowDepth="0"
  38. Color="Green"
  39. RenderingBias="Performance"
  40. Opacity="1"
  41. BlurRadius="20"/>
  42. <!--<BlurEffect RenderingBias="Performance" Radius="15" >
  43. </BlurEffect>-->
  44. </Image.Effect>
  45. <Image.Style>
  46. <Style>
  47. <Setter Property="Image.Opacity" Value="0.4"/>
  48. <Style.Triggers>
  49. <DataTrigger Binding="{Binding ElementName=signalTower,Path=IsYellowLightOn}" Value="True">
  50. <Setter Property="Image.Opacity" Value="1"/>
  51. </DataTrigger>
  52. </Style.Triggers>
  53. </Style>
  54. </Image.Style>
  55. </Image>
  56. <Image Grid.Row="2" Canvas.Left="0" Canvas.Top="0" Name="rectangle3" Stretch="Fill" Source="pack://application:,,,/MECF.Framework.Common;component/Resources/Lime.png" Width="30">
  57. <Image.Effect>
  58. <DropShadowEffect ShadowDepth="0"
  59. Color="Green"
  60. RenderingBias="Performance"
  61. Opacity="1"
  62. BlurRadius="20"/>
  63. <!--<BlurEffect RenderingBias="Performance" Radius="15" >
  64. </BlurEffect>-->
  65. </Image.Effect>
  66. <Image.Style>
  67. <Style>
  68. <Setter Property="Image.Opacity" Value="0.4"/>
  69. <Style.Triggers>
  70. <DataTrigger Binding="{Binding ElementName=signalTower,Path=IsGreenLightOn}" Value="True">
  71. <Setter Property="Image.Opacity" Value="1"/>
  72. </DataTrigger>
  73. </Style.Triggers>
  74. </Style>
  75. </Image.Style>
  76. </Image>
  77. <Image Grid.Row="3" Canvas.Left="0" Canvas.Top="0" Name="rectangle4" Stretch="Fill" Source="pack://application:,,,/MECF.Framework.Common;component/Resources/Blue.png" Width="30" Height="20" >
  78. <Image.Effect>
  79. <DropShadowEffect ShadowDepth="0"
  80. Color="Green"
  81. RenderingBias="Performance"
  82. Opacity="1"
  83. BlurRadius="20"/>
  84. </Image.Effect>
  85. <Image.Style>
  86. <Style>
  87. <Setter Property="Image.Opacity" Value="0.4"/>
  88. <Style.Triggers>
  89. <DataTrigger Binding="{Binding ElementName=signalTower,Path=IsRedLightOn}" Value="True">
  90. <Setter Property="Image.Opacity" Value="1"/>
  91. </DataTrigger>
  92. </Style.Triggers>
  93. </Style>
  94. </Image.Style>
  95. </Image>
  96. <Image Grid.Row="4" Canvas.Left="0" Canvas.Top="0" Name="rectangle5" Stretch="Fill" Source="pack://application:,,,/MECF.Framework.Common;component/Resources/lights.png" Width="30" Height="25" >
  97. <Image.Effect>
  98. <DropShadowEffect ShadowDepth="0"
  99. Color="White"
  100. RenderingBias="Performance"
  101. Opacity="1"
  102. BlurRadius="20"/>
  103. </Image.Effect>
  104. <Image.Style>
  105. <Style>
  106. <Setter Property="Image.Opacity" Value="0.4"/>
  107. <Style.Triggers>
  108. <DataTrigger Binding="{Binding ElementName=signalTower,Path=IsBluzzerLightOn}" Value="True">
  109. <Setter Property="Image.Opacity" Value="1"/>
  110. </DataTrigger>
  111. </Style.Triggers>
  112. </Style>
  113. </Image.Style>
  114. </Image>
  115. </Grid>
  116. </UserControl>