CellStatusControl.xaml 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <UserControl x:Class="CyberX8_Themes.UserControls.CellStatusControl"
  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:local="clr-namespace:CyberX8_Themes.UserControls"
  7. mc:Ignorable="d" x:Name="self"
  8. d:DesignHeight="230" d:DesignWidth="400">
  9. <Grid>
  10. <GroupBox Header="Cell Status">
  11. <Grid>
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="1*"/>
  14. <RowDefinition Height="1*"/>
  15. <RowDefinition Height="1*"/>
  16. <RowDefinition Height="1*"/>
  17. <RowDefinition Height="1*"/>
  18. </Grid.RowDefinitions>
  19. <Grid.ColumnDefinitions>
  20. <ColumnDefinition Width="150"/>
  21. <ColumnDefinition/>
  22. </Grid.ColumnDefinitions>
  23. <Label Grid.Row="0" Grid.Column="0" Content="Anode A FLow" FontSize="16" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="0,0,0,0"/>
  24. <Border Grid.Row="0" Grid.Column="1" Margin="20,5,20,5" Background="Black">
  25. <TextBlock Text="{Binding ElementName=self,Path=AnodeAFlow,StringFormat=\{0:F2\} L/min,Mode=TwoWay}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  26. </Border>
  27. <Label Grid.Row="1" Grid.Column="0" Content="Anode A Status" FontSize="16" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="0,0,0,0"/>
  28. <Border Grid.Row="1" Grid.Column="1" Margin="20,5,20,5" Background="Black">
  29. <TextBlock Text="{Binding ElementName=self,Path=AnodeAStatus,Mode=TwoWay}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  30. </Border>
  31. <Label Grid.Row="2" Grid.Column="0" Content="Anode B FLow" FontSize="16" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="0,0,0,0"/>
  32. <Border Grid.Row="2" Grid.Column="1" Margin="20,5,20,5" Background="Black">
  33. <TextBlock Text="{Binding ElementName=self,Path=AnodeBFlow,StringFormat=\{0:F2\} L/min,Mode=TwoWay}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  34. </Border>
  35. <Label Grid.Row="3" Grid.Column="0" Content="Anode B Status" FontSize="16" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="0,0,0,0"/>
  36. <Border Grid.Row="3" Grid.Column="1" Margin="20,5,20,5" Background="Black">
  37. <TextBlock Text="{Binding ElementName=self,Path=AnodeBStatus,Mode=TwoWay}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  38. </Border>
  39. <Label Grid.Row="4" Grid.Column="0" Content="Cell FLow" FontSize="16" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="0,0,0,0"/>
  40. <Border Grid.Row="4" Grid.Column="1" Margin="20,5,20,5" Background="Black">
  41. <TextBlock Text="{Binding ElementName=self,Path=CellFlow,StringFormat=\{0:F2\} L/min,Mode=TwoWay}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  42. </Border>
  43. </Grid>
  44. </GroupBox>
  45. </Grid>
  46. </UserControl>