AITGasValve.xaml 989 B

12345678910111213141516171819202122
  1. <UserControl x:Class="Aitex.Core.UI.DeviceControl.AITGasValve"
  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. Name="myself"
  8. Height="32" Width="32">
  9. <UserControl.RenderTransform>
  10. <RotateTransform x:Name="rotateTransform" Angle="0" CenterX="16" CenterY="16"/>
  11. </UserControl.RenderTransform>
  12. <Canvas>
  13. <Image Name="imagePicture">
  14. <Image.ContextMenu>
  15. <ContextMenu>
  16. <MenuItem Header="Open Valve" Click="OpenValve"/>
  17. <MenuItem Header="Close Valve" Click="CloseValve" />
  18. </ContextMenu>
  19. </Image.ContextMenu>
  20. </Image>
  21. </Canvas>
  22. </UserControl>