<UserControl x:Class="Aitex.Core.UI.DeviceControl.AITValve"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             Name="myself" 
             Height="40" Width="40">
    <UserControl.RenderTransform>
        <RotateTransform x:Name="rotateTransform" Angle="0" CenterX="22" CenterY="20"/>
    </UserControl.RenderTransform>
    <Grid>
        <Image Name="imagePicture" Stretch="Fill" >
            <Image.ContextMenu>
                <ContextMenu Visibility="{Binding MenuVisibility}">
                    <MenuItem Header="Open Valve" Click="OpenValve"/>
                    <MenuItem Header="Close Valve" Click="CloseValve"/>
                </ContextMenu>
            </Image.ContextMenu>
        </Image>
    </Grid>
</UserControl>
