GasValveV2.xaml 2.0 KB

1234567891011121314151617181920212223242526272829303132
  1. <UserControl x:Class="Aitex.Core.UI.Control.GasValveV2"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:local="clr-namespace:Aitex.Core.UI.Control"
  5. Height="35" Width="20" Background="Transparent" MouseRightButtonUp="canvasmain_MouseRightButtonUp">
  6. <UserControl.RenderTransform>
  7. <RotateTransform x:Name="rotateTransform" Angle="0" CenterX="10" CenterY="20"/>
  8. </UserControl.RenderTransform>
  9. <Canvas Cursor="Hand" x:Name="canvasmain" >
  10. <Border BorderBrush="Aqua" Canvas.Left="0.3" Canvas.Top="0" Panel.ZIndex="9999">
  11. <Border.RenderTransform>
  12. <RotateTransform x:Name="rotateTransform1" Angle="-90" CenterX="7.5" CenterY="7.5"/>
  13. </Border.RenderTransform>
  14. <Canvas Cursor="Hand" Opacity="1" Height="13.026" Width="14.529">
  15. <Polygon Name="passtrigle" Opacity="1" Points="2,0.5 2,10.5 14,5.5" Fill="Green" Height="11" Canvas.Left="0" Canvas.Top="1" Width="14.863" />
  16. <Polygon Name="nopass" Opacity="1" Points="2,0 2,14 14,14 14,0" Fill="Black" Height="13.026" Canvas.Left="2.505" Canvas.Top="0.01" Width="7.181" />
  17. </Canvas>
  18. </Border>
  19. <Border BorderBrush="Aqua" Height="15.03" Canvas.Top="18" Canvas.Left="0.3">
  20. <Border.RenderTransform>
  21. <RotateTransform x:Name="rotateTransform2" Angle="90" CenterX="7.5" CenterY="7.5"/>
  22. </Border.RenderTransform>
  23. <Canvas Cursor="Hand" Opacity="1" Height="13.026" Width="14.529">
  24. <Polygon Name="passtrigle2" Opacity="1" Points="2,0.5 2,10.5 14,5.3" Cursor="Hand" Fill="Green" Height="11.189" Canvas.Left="0" Canvas.Top="1.65" Width="14.863" />
  25. <Polygon Name="nopass2" Opacity="1" Points="2,0 2,14 14,14 14,0" Cursor="Hand" Fill="Black" Height="13.026" Canvas.Left="2.505" Canvas.Top="0.01" Width="7.181" />
  26. </Canvas>
  27. </Border>
  28. </Canvas>
  29. </UserControl>