123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <UserControl x:Class="Aitex.Core.UI.Control.MOPush"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:local="clr-namespace:Aitex.Core.UI.Control"
- xmlns:cv="clr-namespace:Aitex.Core.UI.Converters"
- Height="310" Width="75" BorderThickness="1" MinWidth="75" MaxWidth="75" MinHeight="310" MaxHeight="310">
- <UserControl.Resources>
- <cv:ValveVisibleConvert x:Key="ValveVisibleConvert"/>
- <cv:ServiceModeConvert x:Key="ServiceModeConvert" />
- <cv:MoColorConvert x:Key="MoColorConvert" />
- <cv:MoNameConvert x:Key="MoNameConvert" />
- <cv:MoSourceHeightConvert x:Key="MoSourceHeightConvert" />
- <cv:MoSourceCanvasTopConvert x:Key="MoSourceCanvasTopConvert" />
- </UserControl.Resources>
-
- <Canvas x:Name="LayoutRoot">
- <Rectangle x:Name="RecMOContent" MouseEnter="RecMOSource_MouseEnter" Cursor="Hand" MouseLeave="RecMOSource_MouseLeave" Height="37" Stroke="Black" Fill="AliceBlue" Width="41" RadiusX="4" RadiusY="4" Canvas.Top="237" Canvas.Left="18" />
- <Rectangle x:Name="RecMOSource" MouseEnter="RecMOSource_MouseEnter" Cursor="Hand" MouseLeave="RecMOSource_MouseLeave" Stroke="Black" Width="41" RadiusX="4" RadiusY="4" Canvas.Left="18"
- Fill="{Binding LineData, Converter={StaticResource MoColorConvert}}"
- Height="{Binding LineData, Converter={StaticResource MoSourceHeightConvert}}"
- Canvas.Top="{Binding LineData, Converter={StaticResource MoSourceCanvasTopConvert}}" />
- <Line Stroke="Black" X1="0" Y1="0" X2="0" Y2="180" Canvas.Top="127" Canvas.Left="3" />
- <Line Stroke="Black" X1="0" Y1="0" X2="20" Y2="0" Canvas.Top="127" Canvas.Left="3" />
- <Line Canvas.Left="22" Canvas.Top="87" Stroke="Black" X1="0" Y1="0" X2="0" Y2="185" />
- <Line Canvas.Left="22" Canvas.Top="87" Stroke="Black" X1="0" Y1="0" X2="34" Y2="0" />
- <Line Canvas.Left="55" Canvas.Top="34" Stroke="Black" X1="0" X2="0" Y1="0" Y2="205" />
- <Line Canvas.Left="55" Canvas.Top="14" Stroke="Black" X1="0" X2="0" Y1="0" Y2="15" />
- <Line Canvas.Left="55" Canvas.Top="14" Stroke="Black" X1="0" X2="15" Y1="0" Y2="0" />
- <Line X1="0" Stroke="Black" Panel.ZIndex="-11" Y1="0" X2="33" Y2="0" Height="4" Canvas.Left="22" Canvas.Top="186" />
- <Line X1="0" x:Name="lineCenter" Visibility="{Binding IsServiceMode, Converter={StaticResource ServiceModeConvert}}" Stroke="Black" Panel.ZIndex="-11" Y1="0" X2="33" Y2="0" Height="4" Canvas.Left="22" Canvas.Top="211" />
- <Line X1="0" Stroke="Black" Panel.ZIndex="-11" Y1="0" X2="0" Y2="30" Canvas.Left="69" />
- <local:GasValveV2 Command="{Binding Path=DeviceOperationCommand}" GasValveV2Direction="ToBottom" GasValveV2Data="{Binding Path=VavleRunData}" Height="33" Width="20" Canvas.Left="62" />
- <local:Knot Height="6" KnotT="Through" ThroughInnerColor="#FFC5D0D8" Width="6" Canvas.Top="28" Canvas.Left="56" />
- <!--MFC-->
- <local:AnalogControl Command="{Binding Path=DeviceOperationCommand}" DeviceData="{Binding Path=MfcSourceData}" Height="19.998" Panel.ZIndex="10" Canvas.Top="145" Canvas.Left="6" />
- <local:AnalogControl Command="{Binding Path=DeviceOperationCommand}" DeviceData="{Binding Path=MfcPushData}" Height="19.998" Panel.ZIndex="10" Canvas.Top="96" Canvas.Left="4" />
- <!--PC-->
- <local:AnalogControl BackColor="Blue" Command="{Binding Path=DeviceOperationCommand}" DeviceData="{Binding Path=PcData}" Height="20" Panel.ZIndex="10" Canvas.Top="46" Canvas.Left="30" />
- <!--Valve-->
- <local:GasValve Panel.ZIndex="10" Command="{Binding Path=DeviceOperationCommand}" GasValveData="{Binding Path=ValveBypassData}" Cursor="Hand" Canvas.Left="31" Canvas.Top="178" ValveDirection="ToRight" Width="14.8" Height="11.297" />
- <local:GasValve Panel.ZIndex="10" Command="{Binding Path=DeviceOperationCommand}" GasValveData="{Binding Path=ValveLineData}" Cursor="Hand" Canvas.Left="47" Canvas.Top="188" ValveDirection="ToTop" Width="14.8" Height="11.25" />
- <local:GasValve Panel.ZIndex="10" Command="{Binding Path=DeviceOperationCommand}" GasValveData="{Binding Path=ValveLineData}" Cursor="Hand" Canvas.Left="14" Canvas.Top="188" ValveDirection="ToBottom" Width="14.8" Height="11.25" />
- <local:GasValve Panel.ZIndex="10" Command="{Binding Path=DeviceOperationCommand}" GasValveData="{Binding Path=VavleVacData}" Visibility="{Binding IsServiceMode, Converter={StaticResource ServiceModeConvert}}" Cursor="Hand" Canvas.Left="23" Canvas.Top="203" ValveDirection="ToRight" Width="14.8" Height="11.25" />
- <local:GasValve Panel.ZIndex="10" Command="{Binding Path=DeviceOperationCommand}" GasValveData="{Binding Path=VavleVacData}" Visibility="{Binding IsServiceMode, Converter={StaticResource ServiceModeConvert}}" Cursor="Hand" Canvas.Left="39" Canvas.Top="203" ValveDirection="ToLeft" Width="14.8" Height="11.25" />
- <Label Canvas.Left="0" Canvas.Top="237" MouseEnter="RecMOSource_MouseEnter" MouseLeave="RecMOSource_MouseLeave" Name="lblMoName" FontSize="10" Foreground="Black" Content="{Binding LineData, Converter={StaticResource MoNameConvert},UpdateSourceTrigger=PropertyChanged}" Width="73" HorizontalContentAlignment="Center"></Label>
- <Polygon Name="polygon1" Opacity="1" Points="0,4 0,6 14,6 14,4" Cursor="Hand" Fill="Black" Height="11" Canvas.Left="18" Canvas.Top="219" Width="4" />
- <Polygon Name="polygon2" Opacity="1" Points="5,0 5,14 14,14 14,0" Cursor="Hand" Fill="Black" Height="6" Canvas.Left="12" Canvas.Top="221" Width="7.25" />
- <Polygon Name="polygon3" Opacity="1" Points="0,4 0,6 14,6 14,4" Cursor="Hand" Fill="Black" Height="11" Canvas.Left="55" Canvas.Top="219" Width="4" />
- <Polygon Name="polygon4" Opacity="1" Points="5,0 5,14 14,14 14,0" Cursor="Hand" Fill="Black" Height="6" Canvas.Left="53" Canvas.Top="221" Width="7.25" />
- <Polygon Canvas.Left="32" Canvas.Top="211" Visibility="{Binding IsServiceMode, Converter={StaticResource ServiceModeConvert}}" Cursor="Hand" Fill="Black" Height="4" Opacity="1" Points="5,0 5,14 14,14 14,0" Width="7.25" />
- </Canvas>
- </UserControl>
|