SRDFlipperControl.xaml 4.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <UserControl x:Class="CyberX8_Themes.UserControls.SRDFlipperControl"
  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. xmlns:converters="clr-namespace:CyberX8_Themes.Converters"
  8. mc:Ignorable="d" x:Name="self"
  9. d:DesignHeight="120" d:DesignWidth="580">
  10. <UserControl.Resources>
  11. <converters:BoolToColor x:Key="boolToColor"/>
  12. </UserControl.Resources>
  13. <Grid>
  14. <Grid.RowDefinitions>
  15. <RowDefinition/>
  16. <RowDefinition/>
  17. <RowDefinition/>
  18. </Grid.RowDefinitions>
  19. <Grid.ColumnDefinitions>
  20. <ColumnDefinition Width="130"/>
  21. <ColumnDefinition Width="120"/>
  22. <ColumnDefinition Width="120"/>
  23. <ColumnDefinition/>
  24. <ColumnDefinition/>
  25. <ColumnDefinition/>
  26. <ColumnDefinition/>
  27. </Grid.ColumnDefinitions>
  28. <Label Grid.Column="4" Content="1" FontSize="14" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center" VerticalContentAlignment="Top"/>
  29. <Label Grid.Column="5" Content="2" FontSize="14" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center" VerticalContentAlignment="Top"/>
  30. <Label Grid.Column="6" Content="3" FontSize="14" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center" VerticalContentAlignment="Top"/>
  31. <Label Grid.Row="1" Grid.Column="0" Content="Flipper 150" FontSize="16" FontWeight="Bold" HorizontalAlignment="Left" VerticalContentAlignment="Center" VerticalAlignment="Center"/>
  32. <Button Grid.Row="1" Grid.Column="1" Style="{StaticResource SysBtnStyle}" Margin="10,0,10,0" Height="25" Width="100" HorizontalAlignment="Center" Content="In" Click="FlipperIn150_Click"/>
  33. <Button Grid.Row="1" Grid.Column="2" Style="{StaticResource SysBtnStyle}" Margin="10,0,10,0" Height="25" Width="100" HorizontalAlignment="Center" Content="Out" Click="FlipperOut150_Click"/>
  34. <Label Grid.Row="2" Grid.Column="0" Content="Flipper 200" FontSize="16" FontWeight="Bold" HorizontalAlignment="Left" VerticalContentAlignment="Center" VerticalAlignment="Center"/>
  35. <Button Grid.Row="2" Grid.Column="1" Style="{StaticResource SysBtnStyle}" Margin="10,0,10,0" Height="25" Width="100" HorizontalAlignment="Center" Content="In" Click="FlipperIn200_Click"></Button>
  36. <Button Grid.Row="2" Grid.Column="2" Style="{StaticResource SysBtnStyle}" Margin="10,0,10,0" Height="25" Width="100" HorizontalAlignment="Center" Content="Out" Click="FlipperOut200_Click"/>
  37. <Label Grid.Row="1" Grid.Column="3" Content="Out" FontSize="14" FontWeight="Bold" HorizontalAlignment="Right" VerticalContentAlignment="Center" VerticalAlignment="Center"/>
  38. <Ellipse Grid.Row="1" Grid.Column="4" Width="16" Height="16" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="Silver"
  39. Fill="{Binding CommonData.Flipper1Out150Status, Converter={StaticResource boolToColor}, ElementName=self}"/>
  40. <Ellipse Grid.Row="1" Grid.Column="5" Width="16" Height="16" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="Silver"
  41. Fill="{Binding CommonData.Flipper2Out150Status, Converter={StaticResource boolToColor}, ElementName=self}"/>
  42. <Ellipse Grid.Row="1" Grid.Column="6" Width="16" Height="16" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="Silver"
  43. Fill="{Binding CommonData.Flipper3Out150Status, Converter={StaticResource boolToColor}, ElementName=self}"/>
  44. <Label Grid.Row="3" Grid.Column="3" Content="Out" FontSize="14" FontWeight="Bold" HorizontalAlignment="Right" VerticalContentAlignment="Center" VerticalAlignment="Center"/>
  45. <Ellipse Grid.Row="3" Grid.Column="4" Width="16" Height="16" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="Silver"
  46. Fill="{Binding CommonData.Flipper1Out200Status, Converter={StaticResource boolToColor}, ElementName=self}"/>
  47. <Ellipse Grid.Row="3" Grid.Column="5" Width="16" Height="16" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="Silver"
  48. Fill="{Binding CommonData.Flipper2Out200Status, Converter={StaticResource boolToColor}, ElementName=self}"/>
  49. <Ellipse Grid.Row="3" Grid.Column="6" Width="16" Height="16" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="Silver"
  50. Fill="{Binding CommonData.Flipper3Out200Status, Converter={StaticResource boolToColor}, ElementName=self}"/>
  51. </Grid>
  52. </UserControl>