GasFlowButton.xaml 2.8 KB

1234567891011121314151617181920212223242526272829303132
  1. <UserControl x:Class="Aitex.Core.UI.Control.GasFlowButton"
  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. xmlns:cv="clr-namespace:Aitex.Core.UI.Converters"
  7. Height="28" Width="235">
  8. <UserControl.Resources>
  9. <cv:bool2VisibilityConverter x:Key="bool2VisibilityConvert"/>
  10. </UserControl.Resources>
  11. <Canvas>
  12. <Rectangle Canvas.Left="155" Canvas.Top="9" Fill="{Binding PipeGasColor}" Height="10" OverridesDefaultStyle="False" Stroke="Black" Visibility="{Binding Path=IsFlow2NH3E,Converter= {StaticResource bool2VisibilityConvert}}" Width="17.532" />
  13. <Rectangle Canvas.Left="155" Canvas.Top="9" Fill="{Binding PipeGasColor}" Height="10" OverridesDefaultStyle="False" Stroke="Black" Visibility="{Binding Path=IsFlow2NH3C,Converter= {StaticResource bool2VisibilityConvert}}" Width="55" />
  14. <Rectangle Canvas.Left="155" Canvas.Top="9" Fill="{Binding PipeGasColor}" Height="10" OverridesDefaultStyle="False" Stroke="Black" Visibility="{Binding Path=IsFlow2NH3,Converter= {StaticResource bool2VisibilityConvert}}" Width="55" />
  15. <Rectangle Canvas.Left="1" Canvas.Top="9" Fill="{Binding PipeGasColor}" Height="10" OverridesDefaultStyle="False" Stroke="Black" Visibility="{Binding Path=IsFlow2Run,Converter= {StaticResource bool2VisibilityConvert}}" Width="55" />
  16. <Rectangle Canvas.Left="40" Canvas.Top="9" Fill="{Binding PipeGasColor}" Height="10" OverridesDefaultStyle="False" Stroke="Black" Visibility="{Binding Path=IsFlow2Vent,Converter= {StaticResource bool2VisibilityConvert}}" Width="17" />
  17. <Rectangle Canvas.Left="33" Canvas.Top="9" Fill="Gray" Height="15" Stroke="Black" Width="9" StrokeThickness="0" Visibility="{Binding Path=IsFlow2Vent,Converter= {StaticResource bool2VisibilityConvert}}"/>
  18. <Button Name="btnCarrierGas" Background="{Binding CarrierGasBackgroundColor}" Content="{Binding CarrierGasName}" Canvas.Left="-6" Canvas.Top="0" Height="26" Width="35" FontFamily="Arial,SimSun" FontSize="11" Focusable="False" BorderThickness="1" ClipToBounds="False" />
  19. <Button Name="btnGas" Background="{Binding GasBackgroundColor}" Content="{Binding DisplayName}" Canvas.Left="27" Canvas.Top="0" Height="26" Width="80" FontFamily="Arial,SimSun" FontSize="11" IsEnabled="True" Focusable="False" BorderThickness="1" ClipToBounds="False" />
  20. <Button Name="btnFlow" Background="Gainsboro" Canvas.Left="106" Canvas.Top="0" Height="26" Width="50" Content="{Binding TotalFlow}" FontFamily="Arial,SimSun" FontSize="11" Focusable="False" BorderThickness="1" ClipToBounds="False" />
  21. </Canvas>
  22. </UserControl>