<UserControl x:Class="Aitex.Core.UI.Control.Pump"
             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" 
             Height="79" Width="52">
    <UserControl.RenderTransform>
        <RotateTransform x:Name="rotateTransform" Angle="0" CenterX="26" CenterY="39.5"/>
    </UserControl.RenderTransform>

    <Canvas>
        <Image x:Name="imgPump" Source="pack://application:,,,/MECF.Framework.Common;component/Resources/Valve/PumpGreen.png">
            <Image.ContextMenu>
                <ContextMenu>
                    <MenuItem Header="打开 (_O)" Click="OpenPump"/>
                    <MenuItem Header="关闭 (_C)" Click="ClosePump"/>
                </ContextMenu>
            </Image.ContextMenu>

        </Image>
    </Canvas>
</UserControl>
