MoS2/Framework/MECF.Framework.UI.Core/Control/GasFlow.xaml

65 lines
2.4 KiB
Plaintext
Raw Normal View History

<UserControl
x:Class="Aitex.Core.UI.Control.GasFlow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:control="clr-namespace:Aitex.Core.UI.Control;assembly=MECF.Framework.UI.Core"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Aitex.Core.UI.Control"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
d:Background="#91b0cd"
d:DesignHeight="26"
d:DesignWidth="287"
mc:Ignorable="d">
<StackPanel Orientation="Horizontal">
<Grid Visibility="{Binding FlowData.RunVisibility, RelativeSource={RelativeSource AncestorType=UserControl}}">
<local:FlowPipeV2
Width="62"
Height="9"
FlowOrientation="Horizontal"
GasType="Slow"
IsFlowing="True"
RenderTransformOrigin="0.5,0.5">
<local:FlowPipeV2.RenderTransform>
<TransformGroup>
<RotateTransform Angle="180" />
</TransformGroup>
</local:FlowPipeV2.RenderTransform>
</local:FlowPipeV2>
<Border
Width="62"
Height="9"
Background="Gold"
Opacity="0.8" />
</Grid>
<Border
Width="75"
Height="26"
Background="LightGray"
BorderBrush="Gray"
BorderThickness="1">
<TextBlock Text="{Binding FlowData.RunFlow, StringFormat={}{0:f1}, RelativeSource={RelativeSource AncestorType=UserControl}}" />
</Border>
<Border
Width="75"
Height="26"
Background="Gold"
BorderBrush="Gray"
BorderThickness="1"
Opacity="0.8">
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
Text="{Binding FlowData.GasName, RelativeSource={RelativeSource AncestorType=UserControl}}" />
</Border>
<Border
Width="75"
Height="26"
Background="LightGray"
BorderBrush="Gray"
BorderThickness="1">
<TextBlock Text="{Binding FlowData.VentFlow, StringFormat={}{0:f1}, RelativeSource={RelativeSource AncestorType=UserControl}}" />
</Border>
</StackPanel>
</UserControl>