AITValve.xaml 1.0 KB

1234567891011121314151617181920212223
  1. <UserControl x:Class="Aitex.Core.UI.DeviceControl.AITValve"
  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="40" Width="40">
  9. <UserControl.RenderTransform>
  10. <RotateTransform x:Name="rotateTransform" Angle="0" CenterX="22" CenterY="20"/>
  11. </UserControl.RenderTransform>
  12. <Grid>
  13. <Image Name="imagePicture" Stretch="Fill" >
  14. <Image.ContextMenu>
  15. <ContextMenu Visibility="{Binding MenuVisibility}">
  16. <MenuItem Header="Open Valve" Click="OpenValve"/>
  17. <MenuItem Header="Close Valve" Click="CloseValve"/>
  18. </ContextMenu>
  19. </Image.ContextMenu>
  20. </Image>
  21. </Grid>
  22. </UserControl>